Geant4
10.00.p03
|
#include <G4StateManager.hh>
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) |
G4VStateDependent * | RemoveDependent (const G4VStateDependent *aDependent) |
G4String | GetStateString (G4ApplicationState aState) const |
void | SetSuppressAbortion (G4int i) |
G4int | GetSuppressAbortion () const |
const char * | GetMessage () const |
void | SetExceptionHandler (G4VExceptionHandler *eh) |
G4VExceptionHandler * | GetExceptionHandler () const |
Static Public Member Functions | |
static G4StateManager * | GetStateManager () |
Protected Member Functions | |
G4StateManager () | |
Private Member Functions | |
G4StateManager (const G4StateManager &right) | |
G4StateManager & | operator= (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 |
G4VStateDependent * | theBottomDependent |
G4int | suppressAbortion |
const char * | msgptr |
G4VExceptionHandler * | exceptionHandler |
Static Private Attributes | |
static G4ThreadLocal G4StateManager * | theStateManager = 0 |
Definition at line 60 of file G4StateManager.hh.
|
protected |
Definition at line 44 of file G4StateManager.cc.
References G4iosInitialization().
Referenced by GetStateManager().
G4StateManager::~G4StateManager | ( | ) |
Definition at line 57 of file G4StateManager.cc.
References G4iosFinalization(), and theDependentsList.
|
private |
Definition at line 89 of file G4StateManager.cc.
G4bool G4StateManager::DeregisterDependent | ( | G4VStateDependent * | aDependent | ) |
Definition at line 160 of file G4StateManager.cc.
References theDependentsList.
Referenced by G4VStateDependent::~G4VStateDependent().
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(), G4RunManagerKernel::InitializePhysics(), G4UIcommand::IsAvailable(), 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().
|
inline |
|
inline |
G4ApplicationState G4StateManager::GetPreviousState | ( | ) | const |
Definition at line 186 of file G4StateManager.cc.
References thePreviousState.
Referenced by export_G4StateManager(), and G4VisStateDependent::Notify().
|
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(), 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(), G4RunManagerKernel::InitializePhysics(), G4UIcommand::IsAvailable(), G4VUIshell::MakePrompt(), G4UItcsh::MakePrompt(), G4VisStateDependent::Notify(), G4ExceptionHandler::Notify(), G4UImanager::Notify(), G4UIGAG::NotifyStateChange(), G4UIGainServer::NotifyStateChange(), G4VisCommandSceneAddEventID::EventID::operator()(), G4ErrorPropagatorManager::PrintG4State(), G4VSceneHandler::ProcessScene(), G4ErrorPropagator::PropagateOneStep(), PyG4ExceptionHandler::PyG4ExceptionHandler(), 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().
G4String G4StateManager::GetStateString | ( | G4ApplicationState | aState | ) | const |
Definition at line 247 of file G4StateManager.cc.
References G4State_Abort, G4State_EventProc, G4State_GeomClosed, G4State_Idle, G4State_Init, G4State_PreInit, and G4State_Quit.
Referenced by G4UIcommandTree::CreateHTML(), export_G4StateManager(), G4UIGAG::G4UIGAG(), G4UIGainServer::G4UIGainServer(), G4UIGAG::NotifyStateChange(), G4UIGainServer::NotifyStateChange(), G4UIGAG::SessionStart(), G4UIGainServer::SessionStart(), G4TheMTRayTracer::Trace(), and G4RunManagerKernel::WorkerDefineWorldVolume().
|
inline |
|
private |
Definition at line 123 of file G4StateManager.cc.
|
private |
Definition at line 101 of file G4StateManager.cc.
References exceptionHandler, msgptr, suppressAbortion, theBottomDependent, theCurrentState, theDependentsList, and thePreviousState.
|
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().
G4VStateDependent * G4StateManager::RemoveDependent | ( | const G4VStateDependent * | aDependent | ) |
Definition at line 227 of file G4StateManager.cc.
References theDependentsList.
|
inline |
Referenced by G4VExceptionHandler::G4VExceptionHandler().
G4bool G4StateManager::SetNewState | ( | G4ApplicationState | requestedState | ) |
Definition at line 192 of file G4StateManager.cc.
Referenced by G4ErrorPropagatorManager::CloseGeometry(), G4TheRayTracer::CreateBitMap(), G4RunManagerKernel::DefineWorldVolume(), G4EventManager::DoProcessing(), G4MaterialScanner::DoScan(), G4RunManagerKernel::G4RunManagerKernel(), G4RunManagerKernel::InitializePhysics(), G4RunManagerKernel::RunInitialization(), G4RunManagerKernel::RunTermination(), G4RunManagerKernel::WorkerDefineWorldVolume(), G4RunManager::~G4RunManager(), and G4RunManagerKernel::~G4RunManagerKernel().
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.
|
inline |
|
private |
Definition at line 141 of file G4StateManager.hh.
Referenced by operator=().
|
private |
Definition at line 140 of file G4StateManager.hh.
Referenced by operator=(), and SetNewState().
|
private |
Definition at line 139 of file G4StateManager.hh.
Referenced by operator=(), and SetNewState().
|
private |
Definition at line 138 of file G4StateManager.hh.
Referenced by operator=(), RegisterDependent(), and SetNewState().
|
private |
Definition at line 135 of file G4StateManager.hh.
Referenced by GetCurrentState(), operator=(), and SetNewState().
|
private |
Definition at line 137 of file G4StateManager.hh.
Referenced by DeregisterDependent(), operator=(), RegisterDependent(), RemoveDependent(), SetNewState(), and ~G4StateManager().
|
private |
Definition at line 136 of file G4StateManager.hh.
Referenced by GetPreviousState(), operator=(), and SetNewState().
|
staticprivate |
Definition at line 134 of file G4StateManager.hh.
Referenced by GetStateManager().