47 #ifndef G4AllocatorPool_h
48 #define G4AllocatorPool_h 1
61 inline void Free(
void*
b );
64 inline unsigned int Size()
const;
90 explicit G4PoolChunk(
unsigned int sz)
91 : size(sz), mem(
new char[size]), next(0) {;}
92 ~G4PoolChunk() {
delete [] mem; }
93 const unsigned int size;
103 const unsigned int esize;
121 if (head==0) { Grow(); }
122 G4PoolLink*
p = head;
134 G4PoolLink*
p =
static_cast<G4PoolLink*
>(
b);
146 return nchunks*csize;
176 csize = (sz) ? sz*csize : csize;
unsigned int Size() const
void GrowPageSize(unsigned int factor)
unsigned int GetPageSize() const
G4AllocatorPool(unsigned int n=0)