48 #ifndef GAUDIKERNEL_AllocatorPool_h 49 #define GAUDIKERNEL_AllocatorPool_h 1 76 inline void Free(
void* b );
78 inline unsigned int Size()
const;
97 : size(sz), mem{
new char[size]} {}
126 if ( head==0 ) { Grow(); }
151 return nchunks*csize;
unsigned int Size() const
Return storage size.
PoolChunk(unsigned int sz)
std::unique_ptr< char[]> mem
PropertyMgr & operator=(const PropertyMgr &)=delete
void * Alloc()
Allocate one element.
void Free(void *b)
Return an element back to the pool.
Forward declarations for the functions in SerializeSTL.h.