11 #ifndef UtlChainPool_h__ 12 #define UtlChainPool_h__ 77 return mAllocations * (mBlockSize-1);
98 #endif // UtlChainPool_h__
void release(UtlChain *freeChain)
Return freeLink to the pool of available UtlLinks.
Definition: UtlChainPool.cpp:61
UtlChainPool(allocator *blockAllocator, size_t blockSize)
Create a UtlChainPool that uses blockAllocator to create UtlChain derived objects.
Definition: UtlChainPool.cpp:29
void allocator(size_t blocksize, UtlChain *blockList, UtlChain *pool)
Allocate blocksize instances of the subclass and chain them into the pool.
Definition: UtlChainPool.h:49
Pool of available objects derived from UtlChain.
Definition: UtlChainPool.h:37
Definition: UtlLink.h:241
Utl initializer class. Solves the problem with ordering of constructors & destructors.
Definition: UtlInit.h:40
Associate a key object (the parent UtlLink data) with its value object.
Definition: UtlLink.h:457
size_t totalAllocated()
Returns the total number of subclasses instances allocated by this pool.
Definition: UtlChainPool.h:75