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 auto* p =
static_cast<G4PoolLink*
>(b);
160 csize = (sz) != 0u ? sz * csize : csize;
G4AllocatorPool(const G4AllocatorPool &right)=default
G4AllocatorPool & operator=(const G4AllocatorPool &right)
G4AllocatorPool(unsigned int n=0)
unsigned int Size() const
void GrowPageSize(unsigned int factor)
unsigned int GetPageSize() const