18 #if !defined(STLHELPERS_HEADER_GUARD_1357924680)
19 #define STLHELPERS_HEADER_GUARD_1357924680
60 (*this)(
const_cast<Type*
>(theArg));
66 MemoryManager& theMemoryManager)
72 theMemoryManager.deallocate(theArg);
79 MemoryManager& theMemoryManager)
81 (*this)(
const_cast<Type*
>(theArg), theMemoryManager);
88 XalanDestroyFunctor<Type>
103 m_memoryManager(theManager)
120 MemoryManager& m_memoryManager;
127 template <
class Type>
139 return theArg.clear();
152 m_memoryManager(theManager)
170 MemoryManager& m_memoryManager;
175 template<
class MapType>
176 MapValueDeleteFunctor<MapType>
207 const T* theRHS)
const
209 while(*theLHS && *theRHS)
211 if (*theLHS != *theRHS)
222 return *theLHS < *theRHS ? true :
false;
242 const T* theRHS)
const
244 while(*theLHS && *theRHS)
246 if (*theLHS != *theRHS)
257 if (*theLHS || *theRHS)
270 template <
class ScalarType>
276 return (theResult * 37) + (theResult >> 24) +
size_type(theValue);
288 size_t theInitialValue = 0)
const
290 size_t theHashValue = theInitialValue;
295 while (theKey != theEnd)
302 return ++theHashValue;
314 size_t theInitialValue = 0)
const
316 size_t theHashValue = theInitialValue;
325 return ++theHashValue;
340 template<
class CollectionType>
346 m_collection(&theCollection)
352 if (m_collection != 0)
354 m_collection->clear();
373 CollectionType* m_collection;
378 template<
class CollectionType,
class DeleteFunctorType>
384 m_collection(&theCollection)
390 if (m_collection != 0)
395 for_each(m_collection->begin(),
397 DeleteFunctorType(m_collection->getMemoryManager()));
416 CollectionType* m_collection;
427 const T* theRHS)
const
429 assert(theLHS != 0 && theRHS != 0);
431 return *theLHS == *theRHS;
447 const T* theOther)
const
449 assert(theOther != 0);
451 return *theOther == *m_arg;
467 const T* theRHS)
const
469 assert(theLHS != 0 && theRHS != 0);
473 return less<T>()(*theLHS, *theRHS);
485 const T* theRHS)
const
487 assert(theLHS != 0 && theRHS != 0);
488 return std::equal_to<T>()(*theLHS, *theRHS);
499 #endif // STLHELPERS_HEADER_GUARD_1357924680