![]() |
The Gaudi Framework
master (b9786168)
|
#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. | |
| ~AllocatorPool () | |
| Destructor. Return storage to the free store. | |
| AllocatorPool (const AllocatorPool &right) | |
| Copy constructor. | |
| void * | Alloc () |
| Allocate one element. | |
| void | Free (void *b) |
| Return an element back to the pool. | |
| unsigned int | Size () const |
| Return storage size. | |
| void | Reset () |
| Return storage to the free store. | |
Private Member Functions | |
| AllocatorPool & | operator= (const AllocatorPool &right) |
| Private equality operator. | |
| void | Grow () |
| Make pool larger. | |
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 71 of file AllocatorPool.h.
|
explicit |
Create a pool of elements of size n.
Definition at line 54 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 | ) |
Copy constructor.
Definition at line 62 of file AllocatorPool.cpp.
|
inline |
Allocate one element.
Definition at line 121 of file AllocatorPool.h.
|
inline |
Return an element back to the pool.
Definition at line 132 of file AllocatorPool.h.
|
private |
Make pool larger.
Definition at line 107 of file AllocatorPool.cpp.
|
private |
Private equality operator.
Definition at line 70 of file AllocatorPool.cpp.
| void GaudiUtils::AllocatorPool::Reset | ( | ) |
|
inline |
|
private |
Definition at line 110 of file AllocatorPool.h.
|
private |
Definition at line 109 of file AllocatorPool.h.
|
private |
Definition at line 108 of file AllocatorPool.h.
|
private |
Definition at line 111 of file AllocatorPool.h.
|
private |
Definition at line 112 of file AllocatorPool.h.