41#ifndef G4AllocatorPool_hh
42#define G4AllocatorPool_hh 1
59 inline void Free(
void* b);
62 inline unsigned int Size()
const;
82 explicit G4PoolChunk(
unsigned int sz)
89 ~G4PoolChunk() {
delete[] mem; }
90 const unsigned int size;
99 const unsigned int esize;
101 G4PoolChunk* chunks =
nullptr;
102 G4PoolLink* head =
nullptr;
120 G4PoolLink* p = head;
131 G4PoolLink* p =
static_cast<G4PoolLink*
>(b);
160 csize = (sz) ? sz * csize : csize;
G4AllocatorPool & operator=(const G4AllocatorPool &right)
unsigned int Size() const
void GrowPageSize(unsigned int factor)
unsigned int GetPageSize() const