52 csize(sz<1024/2-16 ? 1024-16 : sz*10-16)
60 : esize(right.esize), csize(right.csize)
70 GaudiUtils::AllocatorPool::operator=
73 if (&right ==
this) {
return *
this; }
125 char*
start =
n->mem.get();
126 char* last = &start[(nelem-1)*
esize];
127 for (
char* p=start; p<last; p+=
esize)
129 reinterpret_cast<PoolLink*
>(p)->next
130 = reinterpret_cast<PoolLink*>(p+
esize);
132 reinterpret_cast<PoolLink*
>(last)->next =
nullptr;
void Grow()
Make pool larger.
~AllocatorPool()
Destructor. Return storage to the free store.
void Reset()
Return storage to the free store.
AllocatorPool(unsigned int n=0)
Create a pool of elements of size n.