18#ifndef OBJECT_CACHE_GUARD
19#define OBJECT_CACHE_GUARD
65 _cacheDeleter(_cache) {
78template<
class T>
template<
class S>
89template<
class T>
template<
class S>
void noThrowPushBack(Container &container, auto_ptr< Element > pointer)
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
An ObjectCache keeps a cache of previously-used objects to cut down on the number of allocations.
auto_ptr< T > newObjectCopy(const S ©Of)
Returns a copy of copyOf.
auto_ptr< T > newObject()
Returns an object.
void freeObject(auto_ptr< S > object)
Insert an object into the cache.
ElementDeleter< vector< T * > > _cacheDeleter