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, unique_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.
unique_ptr< T > newObjectCopy(const S ©Of)
Returns a copy of copyOf.
unique_ptr< T > newObject()
Returns an object.
void freeObject(unique_ptr< S > object)
Insert an object into the cache.
ElementDeleter< vector< T * > > _cacheDeleter