Geant4  10.03
G4StateManager Class Reference

#include <G4StateManager.hh>

+ Collaboration diagram for G4StateManager:

Public Member Functions

 ~G4StateManager ()
 
G4ApplicationState GetCurrentState () const
 
G4ApplicationState GetPreviousState () const
 
G4bool SetNewState (G4ApplicationState requestedState)
 
G4bool SetNewState (G4ApplicationState requestedState, const char *msg)
 
G4bool RegisterDependent (G4VStateDependent *aDependent, G4bool bottom=false)
 
G4bool DeregisterDependent (G4VStateDependent *aDependent)
 
G4VStateDependentRemoveDependent (const G4VStateDependent *aDependent)
 
G4String GetStateString (G4ApplicationState aState) const
 
void SetSuppressAbortion (G4int i)
 
G4int GetSuppressAbortion () const
 
const char * GetMessage () const
 
void SetExceptionHandler (G4VExceptionHandler *eh)
 
G4VExceptionHandlerGetExceptionHandler () const
 

Static Public Member Functions

static G4StateManagerGetStateManager ()
 

Protected Member Functions

 G4StateManager ()
 

Private Member Functions

 G4StateManager (const G4StateManager &right)
 
G4StateManageroperator= (const G4StateManager &right)
 
G4int operator== (const G4StateManager &right) const
 
G4int operator!= (const G4StateManager &right) const
 

Private Attributes

G4ApplicationState theCurrentState
 
G4ApplicationState thePreviousState
 
std::vector< G4VStateDependent * > theDependentsList
 
G4VStateDependenttheBottomDependent
 
G4int suppressAbortion
 
const char * msgptr
 
G4VExceptionHandlerexceptionHandler
 

Static Private Attributes

static G4ThreadLocal
G4StateManager
theStateManager = 0
 

Detailed Description

Definition at line 60 of file G4StateManager.hh.

Constructor & Destructor Documentation

G4StateManager::G4StateManager ( )
protected

Definition at line 44 of file G4StateManager.cc.

References G4iosInitialization().

Referenced by GetStateManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4StateManager::~G4StateManager ( )

Definition at line 57 of file G4StateManager.cc.

References G4iosFinalization(), and theDependentsList.

+ Here is the call graph for this function:

G4StateManager::G4StateManager ( const G4StateManager right)
private

Definition at line 89 of file G4StateManager.cc.

Member Function Documentation

G4bool G4StateManager::DeregisterDependent ( G4VStateDependent aDependent)

Definition at line 160 of file G4StateManager.cc.

References theDependentsList.

Referenced by G4VStateDependent::~G4VStateDependent().

+ Here is the caller graph for this function:

G4ApplicationState G4StateManager::GetCurrentState ( ) const

Definition at line 180 of file G4StateManager.cc.

References theCurrentState.

Referenced by G4RunManager::AbortEvent(), G4RunManager::AbortRun(), G4MTRunManager::AbortRun(), G4ProcessManager::ActivateProcess(), G4RunManager::ConfirmBeamOnCondition(), G4RunManagerKernel::DefineWorldVolume(), G4EventManager::DoProcessing(), export_G4StateManager(), G4ParticleDefinition::G4ParticleDefinition(), G4UIGAG::G4UIGAG(), G4UIGainServer::G4UIGainServer(), G4EventManager::GetUserInformation(), G4ProcessManager::InActivateProcess(), G4ErrorPropagatorManager::InitGeant4e(), G4RunManager::Initialize(), G4RunManager::InitializeGeometry(), G4RunManagerKernel::InitializePhysics(), G4RunManager::InitializePhysics(), G4UIcommand::IsAvailable(), G4DeexPrecoParameters::IsLocked(), G4EmParameters::IsLocked(), G4VUIshell::MakePrompt(), G4UItcsh::MakePrompt(), G4ExceptionHandler::Notify(), G4UIGAG::NotifyStateChange(), G4UIGainServer::NotifyStateChange(), G4VisCommandSceneAddEventID::EventID::operator()(), G4VSceneHandler::ProcessScene(), G4ErrorPropagator::PropagateOneStep(), G4VModularPhysicsList::RegisterPhysics(), G4ParticleTable::Remove(), G4IonTable::Remove(), G4VModularPhysicsList::RemovePhysics(), G4VModularPhysicsList::ReplacePhysics(), G4RunManagerKernel::RunInitialization(), G4MaterialScanner::Scan(), G4UIGAG::SessionStart(), G4UIGainServer::SessionStart(), G4ParticlePropertyTable::SetParticleProperty(), G4EventManager::SetUserInformation(), G4VelocityTable::SetVelocityTableProperties(), G4TheRayTracer::Trace(), G4TheMTRayTracer::Trace(), G4RunManagerKernel::UpdateRegion(), G4UIGAG::UpdateState(), G4UIGainServer::UpdateState(), G4RunManagerKernel::WorkerDefineWorldVolume(), G4ParticleDefinition::~G4ParticleDefinition(), G4RunManager::~G4RunManager(), and G4RunManagerKernel::~G4RunManagerKernel().

G4VExceptionHandler* G4StateManager::GetExceptionHandler ( ) const
inline

Referenced by G4Exception().

+ Here is the caller graph for this function:

const char* G4StateManager::GetMessage ( ) const
inline
G4ApplicationState G4StateManager::GetPreviousState ( ) const

Definition at line 186 of file G4StateManager.cc.

References thePreviousState.

Referenced by export_G4StateManager(), and G4VisStateDependent::Notify().

+ Here is the caller graph for this function:

G4StateManager * G4StateManager::GetStateManager ( )
static

Definition at line 131 of file G4StateManager.cc.

References G4StateManager(), and theStateManager.

Referenced by G4RunManager::AbortEvent(), G4RunManager::AbortRun(), G4MTRunManager::AbortRun(), G4ProcessManager::ActivateProcess(), HadrontherapyInteractionParameters::BeamOn(), IORTInteractionParameters::BeamOn(), G4ErrorPropagatorManager::CloseGeometry(), G4RunManager::ConfirmBeamOnCondition(), G4TheRayTracer::CreateBitMap(), G4UIcommandTree::CreateHTML(), G4RunManagerKernel::DefineWorldVolume(), G4MaterialScanner::DoScan(), export_G4StateManager(), pyG4Exception::f2_G4Exception(), G4DeexPrecoParameters::G4DeexPrecoParameters(), G4EmParameters::G4EmParameters(), G4EventManager::G4EventManager(), G4Exception(), G4ParticleDefinition::G4ParticleDefinition(), G4RunManagerKernel::G4RunManagerKernel(), G4UIGAG::G4UIGAG(), G4UIGainServer::G4UIGainServer(), G4VExceptionHandler::G4VExceptionHandler(), G4VStateDependent::G4VStateDependent(), G4UIcontrolMessenger::GetCurrentValue(), G4DNAMolecularMaterial::GetDensityTableFor(), G4DNAMolecularMaterial::GetNumMolPerVolTableFor(), G4ProcessManager::InActivateProcess(), G4ErrorPropagatorManager::InitGeant4e(), G4RunManager::Initialize(), G4RunManager::InitializeGeometry(), G4RunManagerKernel::InitializePhysics(), G4RunManager::InitializePhysics(), G4UIcommand::IsAvailable(), G4VUIshell::MakePrompt(), G4UItcsh::MakePrompt(), G4VisStateDependent::Notify(), G4ExceptionHandler::Notify(), G4DNAMolecularMaterial::Notify(), G4UImanager::Notify(), G4UIGAG::NotifyStateChange(), G4UIGainServer::NotifyStateChange(), G4VisCommandSceneAddEventID::EventID::operator()(), G4ErrorPropagatorManager::PrintG4State(), G4VSceneHandler::ProcessScene(), G4ErrorPropagator::PropagateOneStep(), PyG4ExceptionHandler::PyG4ExceptionHandler(), G4MTcoutDestination::ReceiveG4cerr(), G4MTcoutDestination::ReceiveG4cout(), G4VModularPhysicsList::RegisterPhysics(), G4ParticleTable::Remove(), G4IonTable::Remove(), G4VModularPhysicsList::RemovePhysics(), G4VModularPhysicsList::ReplacePhysics(), G4RunManagerKernel::RunInitialization(), G4RunManagerKernel::RunTermination(), G4MaterialScanner::Scan(), G4UIGAG::SessionStart(), G4UIGainServer::SessionStart(), G4UIcontrolMessenger::SetNewValue(), G4ParticlePropertyTable::SetParticleProperty(), G4VelocityTable::SetVelocityTableProperties(), SignalHandler(), G4TheRayTracer::Trace(), G4TheMTRayTracer::Trace(), G4RunManagerKernel::UpdateRegion(), G4UIGAG::UpdateState(), G4UIGainServer::UpdateState(), G4MPImanager::UpdateStatus(), G4RunManagerKernel::WorkerDefineWorldVolume(), G4ParticleDefinition::~G4ParticleDefinition(), G4RunManager::~G4RunManager(), G4RunManagerKernel::~G4RunManagerKernel(), and G4VStateDependent::~G4VStateDependent().

+ Here is the call graph for this function:

G4int G4StateManager::GetSuppressAbortion ( ) const
inline
G4int G4StateManager::operator!= ( const G4StateManager right) const
private

Definition at line 123 of file G4StateManager.cc.

G4StateManager & G4StateManager::operator= ( const G4StateManager right)
private
G4int G4StateManager::operator== ( const G4StateManager right) const
private

Definition at line 117 of file G4StateManager.cc.

G4bool G4StateManager::RegisterDependent ( G4VStateDependent aDependent,
G4bool  bottom = false 
)

Definition at line 141 of file G4StateManager.cc.

References theBottomDependent, and theDependentsList.

Referenced by G4VStateDependent::G4VStateDependent().

+ Here is the caller graph for this function:

G4VStateDependent * G4StateManager::RemoveDependent ( const G4VStateDependent aDependent)

Definition at line 227 of file G4StateManager.cc.

References theDependentsList.

void G4StateManager::SetExceptionHandler ( G4VExceptionHandler eh)
inline

Referenced by G4VExceptionHandler::G4VExceptionHandler().

+ Here is the caller graph for this function:

G4bool G4StateManager::SetNewState ( G4ApplicationState  requestedState,
const char *  msg 
)

Definition at line 196 of file G4StateManager.cc.

References G4State_Abort, G4State_EventProc, msgptr, G4VStateDependent::Notify(), suppressAbortion, theBottomDependent, theCurrentState, theDependentsList, and thePreviousState.

+ Here is the call graph for this function:

void G4StateManager::SetSuppressAbortion ( G4int  i)
inline

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4VExceptionHandler* G4StateManager::exceptionHandler
private

Definition at line 141 of file G4StateManager.hh.

Referenced by operator=().

const char* G4StateManager::msgptr
private

Definition at line 140 of file G4StateManager.hh.

Referenced by operator=(), and SetNewState().

G4int G4StateManager::suppressAbortion
private

Definition at line 139 of file G4StateManager.hh.

Referenced by operator=(), and SetNewState().

G4VStateDependent* G4StateManager::theBottomDependent
private

Definition at line 138 of file G4StateManager.hh.

Referenced by operator=(), RegisterDependent(), and SetNewState().

G4ApplicationState G4StateManager::theCurrentState
private

Definition at line 135 of file G4StateManager.hh.

Referenced by GetCurrentState(), operator=(), and SetNewState().

std::vector<G4VStateDependent*> G4StateManager::theDependentsList
private
G4ApplicationState G4StateManager::thePreviousState
private

Definition at line 136 of file G4StateManager.hh.

Referenced by GetPreviousState(), operator=(), and SetNewState().

G4ThreadLocal G4StateManager * G4StateManager::theStateManager = 0
staticprivate

Definition at line 134 of file G4StateManager.hh.

Referenced by GetStateManager().


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