Geant4
10.00.p03
|
#include <G4AllocatorPool.hh>
Classes | |
class | G4PoolChunk |
struct | G4PoolLink |
Public Member Functions | |
G4AllocatorPool (unsigned int n=0) | |
~G4AllocatorPool () | |
void * | Alloc () |
void | Free (void *b) |
unsigned int | Size () const |
void | Reset () |
int | GetNoPages () const |
unsigned int | GetPageSize () const |
void | GrowPageSize (unsigned int factor) |
Private Member Functions | |
G4AllocatorPool (const G4AllocatorPool &right) | |
G4AllocatorPool & | operator= (const G4AllocatorPool &right) |
void | Grow () |
Private Attributes | |
const unsigned int | esize |
unsigned int | csize |
G4PoolChunk * | chunks |
G4PoolLink * | head |
int | nchunks |
Definition at line 50 of file G4AllocatorPool.hh.
|
explicit |
Definition at line 44 of file G4AllocatorPool.cc.
G4AllocatorPool::~G4AllocatorPool | ( | ) |
Definition at line 79 of file G4AllocatorPool.cc.
References Reset().
|
private |
Definition at line 55 of file G4AllocatorPool.cc.
|
inline |
Definition at line 119 of file G4AllocatorPool.hh.
References Grow(), head, and G4AllocatorPool::G4PoolLink::next.
|
inline |
Definition at line 132 of file G4AllocatorPool.hh.
References head, and G4AllocatorPool::G4PoolLink::next.
|
inline |
Definition at line 154 of file G4AllocatorPool.hh.
References nchunks.
|
inline |
Definition at line 164 of file G4AllocatorPool.hh.
References csize.
|
private |
Definition at line 109 of file G4AllocatorPool.cc.
References chunks, csize, esize, head, G4AllocatorPool::G4PoolChunk::mem, n, nchunks, and G4AllocatorPool::G4PoolChunk::next.
Referenced by Alloc().
|
inline |
Definition at line 174 of file G4AllocatorPool.hh.
References csize.
|
private |
Definition at line 66 of file G4AllocatorPool.cc.
void G4AllocatorPool::Reset | ( | ) |
Definition at line 88 of file G4AllocatorPool.cc.
References chunks, head, n, nchunks, and G4AllocatorPool::G4PoolChunk::next.
Referenced by ~G4AllocatorPool().
|
inline |
Definition at line 144 of file G4AllocatorPool.hh.
|
private |
Definition at line 105 of file G4AllocatorPool.hh.
Referenced by Grow(), operator=(), and Reset().
|
private |
Definition at line 104 of file G4AllocatorPool.hh.
Referenced by GetPageSize(), Grow(), GrowPageSize(), and Size().
|
private |
Definition at line 103 of file G4AllocatorPool.hh.
Referenced by Grow().
|
private |
Definition at line 106 of file G4AllocatorPool.hh.
Referenced by Alloc(), Free(), Grow(), operator=(), and Reset().
|
private |
Definition at line 107 of file G4AllocatorPool.hh.
Referenced by GetNoPages(), Grow(), operator=(), Reset(), and Size().