Geant4  10.02.p03
G4AllocatorPool::G4PoolChunk Class Reference
Collaboration diagram for G4AllocatorPool::G4PoolChunk:

Public Member Functions

 G4PoolChunk (unsigned int sz)
 
 ~G4PoolChunk ()
 

Public Attributes

const unsigned int size
 
char * mem
 
G4PoolChunknext
 

Detailed Description

Definition at line 87 of file G4AllocatorPool.hh.

Constructor & Destructor Documentation

◆ G4PoolChunk()

G4AllocatorPool::G4PoolChunk::G4PoolChunk ( unsigned int  sz)
inlineexplicit

Definition at line 90 of file G4AllocatorPool.hh.

91  : size(sz), mem(new char[size]), next(0) {;}

◆ ~G4PoolChunk()

G4AllocatorPool::G4PoolChunk::~G4PoolChunk ( )
inline

Definition at line 92 of file G4AllocatorPool.hh.

92 { delete [] mem; }

Member Data Documentation

◆ mem

char* G4AllocatorPool::G4PoolChunk::mem

Definition at line 94 of file G4AllocatorPool.hh.

◆ next

G4PoolChunk* G4AllocatorPool::G4PoolChunk::next

Definition at line 95 of file G4AllocatorPool.hh.

◆ size

const unsigned int G4AllocatorPool::G4PoolChunk::size

Definition at line 93 of file G4AllocatorPool.hh.


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