51 #ifndef GAUDIKERNEL_AllocatorPool_h
52 #define GAUDIKERNEL_AllocatorPool_h 1
54 #include "GaudiKernel/Kernel.h"
70 explicit AllocatorPool(
unsigned int n=0 );
74 AllocatorPool(
const AllocatorPool& right);
78 inline void Free(
void* b );
80 inline unsigned int Size()
const;
87 AllocatorPool& operator= (
const AllocatorPool& right);
98 explicit PoolChunk(
unsigned int sz)
99 : size(sz), mem(new char[size]), next(0) {;}
100 ~PoolChunk() {
delete [] mem; }
101 const unsigned int size;
111 const unsigned int esize;
112 const unsigned int csize;
142 PoolLink* p =
static_cast<PoolLink*
>(b);
154 return nchunks*csize;
void Grow()
Make pool larger.
unsigned int Size() const
Return storage size.
void * Alloc()
Allocate one element.
void Free(void *b)
Return an element back to the pool.
Forward declarations for the functions in SerializeSTL.h.