Geant4  10.03
G4PDefManager Class Reference

#include <G4PDefManager.hh>

+ Collaboration diagram for G4PDefManager:

Public Member Functions

 G4PDefManager ()
 
G4int CreateSubInstance ()
 
void NewSubInstances ()
 
void FreeSlave ()
 
G4PDefDataGetOffset ()
 
void UseWorkArea (G4PDefData *newOffset)
 
G4PDefDataFreeWorkArea ()
 

Public Attributes

G4PART_DLL G4ThreadLocalStatic
G4int 
slavetotalspace =0
 
G4PART_DLL G4ThreadLocalStatic
G4PDefData
offset =0
 

Private Attributes

G4int totalobj
 
G4Mutex mutex
 

Detailed Description

Definition at line 87 of file G4PDefManager.hh.

Constructor & Destructor Documentation

G4PDefManager::G4PDefManager ( )

Definition at line 59 of file G4PDefManager.cc.

References G4MUTEXINIT.

Member Function Documentation

G4int G4PDefManager::CreateSubInstance ( )

Definition at line 64 of file G4PDefManager.cc.

References G4TemplateAutoLock< M, L, U >::lock(), NewSubInstances(), slavetotalspace, totalobj, and G4TemplateAutoLock< M, L, U >::unlock().

Referenced by G4ParticleDefinition::SetParticleDefinitionID().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PDefManager::FreeSlave ( )

Definition at line 103 of file G4PDefManager.cc.

References free, and offset.

Referenced by G4ParticlesWorkspace::DestroyWorkspace().

+ Here is the caller graph for this function:

G4PDefData * G4PDefManager::FreeWorkArea ( )

Definition at line 131 of file G4PDefManager.cc.

References offset.

G4PDefData * G4PDefManager::GetOffset ( )

Definition at line 112 of file G4PDefManager.cc.

References offset.

Referenced by G4ParticlesWorkspace::G4ParticlesWorkspace().

+ Here is the caller graph for this function:

void G4PDefManager::NewSubInstances ( )

Definition at line 80 of file G4PDefManager.cc.

References FatalException, G4Exception(), G4PDefData::initialize(), offset, slavetotalspace, and totalobj.

Referenced by CreateSubInstance(), and G4ParticlesWorkspace::InitialiseWorkspace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PDefManager::UseWorkArea ( G4PDefData newOffset)

Definition at line 117 of file G4PDefManager.cc.

References FatalException, G4Exception(), and offset.

Referenced by G4ParticlesWorkspace::ReleaseWorkspace(), and G4ParticlesWorkspace::UseWorkspace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4Mutex G4PDefManager::mutex
private

Definition at line 121 of file G4PDefManager.hh.

G4ThreadLocal G4PDefData * G4PDefManager::offset =0

Definition at line 116 of file G4PDefManager.hh.

Referenced by FreeSlave(), FreeWorkArea(), GetOffset(), NewSubInstances(), and UseWorkArea().

G4ThreadLocal G4int G4PDefManager::slavetotalspace =0
G4int G4PDefManager::totalobj
private

Definition at line 120 of file G4PDefManager.hh.

Referenced by CreateSubInstance(), and NewSubInstances().


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