48 #ifndef GAUDIKERNEL_AllocatorPool_h
49 #define GAUDIKERNEL_AllocatorPool_h 1
52 #include "GaudiKernel/Kernel.h"
76 inline void Free(
void* b );
78 inline unsigned int Size()
const;
97 : size(sz), mem{
new char[size]} {}
99 std::unique_ptr<char[]>
mem;
151 return nchunks*csize;
void Grow()
Make pool larger.
unsigned int Size() const
Return storage size.
PoolChunk(unsigned int sz)
void * Alloc()
Allocate one element.
std::unique_ptr< char[]> mem
void Free(void *b)
Return an element back to the pool.
Forward declarations for the functions in SerializeSTL.h.