The Gaudi Framework
v30r3 (a5ef0a68)
|
#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 63 of file AllocatorPool.h.
|
explicit |
Create a pool of elements of size n.
Definition at line 49 of file AllocatorPool.cpp.
GaudiUtils::AllocatorPool::~AllocatorPool | ( | ) |
Destructor. Return storage to the free store.
Definition at line 82 of file AllocatorPool.cpp.
GaudiUtils::AllocatorPool::AllocatorPool | ( | const AllocatorPool & | right | ) |
|
inline |
|
inline |
|
private |
|
private |
void GaudiUtils::AllocatorPool::Reset | ( | ) |
|
inline |
|
private |
Definition at line 104 of file AllocatorPool.h.
|
private |
Definition at line 103 of file AllocatorPool.h.
|
private |
Definition at line 102 of file AllocatorPool.h.
|
private |
Definition at line 105 of file AllocatorPool.h.
|
private |
Definition at line 106 of file AllocatorPool.h.