23 #ifndef __ccxx_DynamicObjectPool_hxx 24 #define __ccxx_DynamicObjectPool_hxx 92 void (*_resetFunc)(T*);
98 #include <commonc++/DynamicObjectPoolImpl.h++> 102 #endif // __ccxx_DynamicObjectPool_hxx An object pool that dynamically allocates its objects.
Definition: DynamicObjectPool.h++:45
A base class for object pools.
Definition: ObjectPool.h++:56
DynamicObjectPool(uint_t size, void(*resetFunc)(T *), bool lazy=false)
Construct a new DynamicObjectPool of the given size.
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
T * reserve()
Reserve an object from the pool.
void release(T *elem)
Release an object back to the pool.
Definition: AllocationMap.c++:25
~DynamicObjectPool()
Destructor.