![]() |
The Gaudi Framework
v32r2 (46d42edc)
|
#include <GaudiKernel/AllocatorPool.h>
Classes | |
class | PoolChunk |
struct | PoolLink |
Public Member Functions | |
AllocatorPool (unsigned int n=0) | |
Create a pool of elements of size n. More... | |
~AllocatorPool () | |
Destructor. Return storage to the free store. More... | |
AllocatorPool (const AllocatorPool &right) | |
Copy constructor. More... | |
void * | Alloc () |
Allocate one element. More... | |
void | Free (void *b) |
Return an element back to the pool. More... | |
unsigned int | Size () const |
Return storage size. More... | |
void | Reset () |
Return storage to the free store. More... | |
Private Member Functions | |
AllocatorPool & | operator= (const AllocatorPool &right) |
Private equality operator. More... | |
void | Grow () |
Make pool larger. More... | |
Private Attributes | |
const unsigned int | esize |
const unsigned int | csize |
PoolChunk * | chunks = nullptr |
PoolLink * | head = nullptr |
int | nchunks = 0 |
Allocator pool.
Class is imported from Geant4 project
Definition at line 62 of file AllocatorPool.h.
|
explicit |
GaudiUtils::AllocatorPool::~AllocatorPool | ( | ) |
Destructor. Return storage to the free store.
Definition at line 77 of file AllocatorPool.cpp.
GaudiUtils::AllocatorPool::AllocatorPool | ( | const AllocatorPool & | right | ) |
|
inline |
|
inline |
|
private |
|
private |
void GaudiUtils::AllocatorPool::Reset | ( | ) |
|
inline |
|
private |
Definition at line 101 of file AllocatorPool.h.
|
private |
Definition at line 100 of file AllocatorPool.h.
|
private |
Definition at line 99 of file AllocatorPool.h.
|
private |
Definition at line 102 of file AllocatorPool.h.
|
private |
Definition at line 103 of file AllocatorPool.h.