Geant4-11
Public Member Functions | Data Fields
G4AllocatorPool::G4PoolChunk Class Reference

Public Member Functions

 G4PoolChunk (unsigned int sz)
 
 ~G4PoolChunk ()
 

Data Fields

char * mem
 
G4PoolChunknext
 
const unsigned int size
 

Detailed Description

Definition at line 79 of file G4AllocatorPool.hh.

Constructor & Destructor Documentation

◆ G4PoolChunk()

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

Definition at line 82 of file G4AllocatorPool.hh.

83 : size(sz)
84 , mem(new char[size])
85 , next(0)
86 {
87 ;
88 }

◆ ~G4PoolChunk()

G4AllocatorPool::G4PoolChunk::~G4PoolChunk ( )
inline

Definition at line 89 of file G4AllocatorPool.hh.

89{ delete[] mem; }

References mem.

Field Documentation

◆ mem

char* G4AllocatorPool::G4PoolChunk::mem

Definition at line 91 of file G4AllocatorPool.hh.

Referenced by ~G4PoolChunk().

◆ next

G4PoolChunk* G4AllocatorPool::G4PoolChunk::next

Definition at line 92 of file G4AllocatorPool.hh.

◆ size

const unsigned int G4AllocatorPool::G4PoolChunk::size

Definition at line 90 of file G4AllocatorPool.hh.


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