ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4AllocatorPool Class Reference

#include <geant4/tree/geant4-10.6-release/source/global/management/include/G4AllocatorPool.hh>

+ Collaboration diagram for G4AllocatorPool:

Classes

class  G4PoolChunk
 
struct  G4PoolLink
 

Public Member Functions

 G4AllocatorPool (unsigned int n=0)
 
 ~G4AllocatorPool ()
 
 G4AllocatorPool (const G4AllocatorPool &right)
 
G4AllocatorPooloperator= (const G4AllocatorPool &right)
 
voidAlloc ()
 
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

void Grow ()
 

Private Attributes

const unsigned int esize
 
unsigned int csize
 
G4PoolChunkchunks
 
G4PoolLinkhead
 
int nchunks
 

Detailed Description

Definition at line 49 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 49 of file G4AllocatorPool.hh

Constructor & Destructor Documentation

G4AllocatorPool::G4AllocatorPool ( unsigned int  n = 0)
explicit

Definition at line 43 of file G4AllocatorPool.cc.

View newest version in sPHENIX GitHub at line 43 of file G4AllocatorPool.cc

G4AllocatorPool::~G4AllocatorPool ( )

Definition at line 78 of file G4AllocatorPool.cc.

View newest version in sPHENIX GitHub at line 78 of file G4AllocatorPool.cc

References Reset().

+ Here is the call graph for this function:

G4AllocatorPool::G4AllocatorPool ( const G4AllocatorPool right)

Definition at line 54 of file G4AllocatorPool.cc.

View newest version in sPHENIX GitHub at line 54 of file G4AllocatorPool.cc

Member Function Documentation

void * G4AllocatorPool::Alloc ( )
inline

Definition at line 118 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 118 of file G4AllocatorPool.hh

References Grow(), head, and G4AllocatorPool::G4PoolLink::next.

+ Here is the call graph for this function:

void G4AllocatorPool::Free ( void b)
inline

Definition at line 131 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 131 of file G4AllocatorPool.hh

References b, head, and G4AllocatorPool::G4PoolLink::next.

int G4AllocatorPool::GetNoPages ( ) const
inline

Definition at line 153 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 153 of file G4AllocatorPool.hh

References nchunks.

unsigned int G4AllocatorPool::GetPageSize ( ) const
inline

Definition at line 163 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 163 of file G4AllocatorPool.hh

References csize.

void G4AllocatorPool::Grow ( )
private

Definition at line 108 of file G4AllocatorPool.cc.

View newest version in sPHENIX GitHub at line 108 of file G4AllocatorPool.cc

References chunks, csize, esize, head, G4AllocatorPool::G4PoolChunk::mem, n, nchunks, G4AllocatorPool::G4PoolChunk::next, and start().

Referenced by Alloc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AllocatorPool::GrowPageSize ( unsigned int  factor)
inline

Definition at line 173 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 173 of file G4AllocatorPool.hh

References csize.

G4AllocatorPool & G4AllocatorPool::operator= ( const G4AllocatorPool right)

Definition at line 65 of file G4AllocatorPool.cc.

View newest version in sPHENIX GitHub at line 65 of file G4AllocatorPool.cc

References chunks, head, and nchunks.

void G4AllocatorPool::Reset ( )

Definition at line 87 of file G4AllocatorPool.cc.

View newest version in sPHENIX GitHub at line 87 of file G4AllocatorPool.cc

References chunks, head, n, nchunks, and G4AllocatorPool::G4PoolChunk::next.

Referenced by ~G4AllocatorPool().

+ Here is the caller graph for this function:

unsigned int G4AllocatorPool::Size ( ) const
inline

Definition at line 143 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 143 of file G4AllocatorPool.hh

References csize, and nchunks.

Member Data Documentation

G4PoolChunk* G4AllocatorPool::chunks
private

Definition at line 104 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 104 of file G4AllocatorPool.hh

Referenced by Grow(), operator=(), and Reset().

unsigned int G4AllocatorPool::csize
private

Definition at line 103 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 103 of file G4AllocatorPool.hh

Referenced by GetPageSize(), Grow(), GrowPageSize(), and Size().

const unsigned int G4AllocatorPool::esize
private

Definition at line 102 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 102 of file G4AllocatorPool.hh

Referenced by Grow().

G4PoolLink* G4AllocatorPool::head
private

Definition at line 105 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 105 of file G4AllocatorPool.hh

Referenced by Alloc(), Free(), Grow(), operator=(), and Reset().

int G4AllocatorPool::nchunks
private

Definition at line 106 of file G4AllocatorPool.hh.

View newest version in sPHENIX GitHub at line 106 of file G4AllocatorPool.hh

Referenced by GetNoPages(), Grow(), operator=(), Reset(), and Size().


The documentation for this class was generated from the following files: