#include <G4StateManager.hh>
Definition at line 60 of file G4StateManager.hh.
G4StateManager::G4StateManager |
( |
| ) |
|
|
protected |
Definition at line 44 of file G4StateManager.cc.
47 theBottomDependent(0),
52 #ifdef G4MULTITHREADED
void G4iosInitialization()
G4StateManager::~G4StateManager |
( |
| ) |
|
Definition at line 57 of file G4StateManager.cc.
61 while (theDependentsList.size()>0)
63 state = theDependentsList.back();
64 theDependentsList.pop_back();
65 for (std::vector<G4VStateDependent*>::iterator
66 i=theDependentsList.begin(); i!=theDependentsList.end();)
70 i = theDependentsList.erase(i);
77 if ( state ) {
delete state; }
79 #ifdef G4MULTITHREADED_DEACTIVATE
Definition at line 160 of file G4StateManager.cc.
163 for (std::vector<G4VStateDependent*>::iterator i=theDependentsList.begin();
164 i!=theDependentsList.end();)
166 if (**i==*aDependent)
169 i = theDependentsList.erase(i);
const char* G4StateManager::GetMessage |
( |
| ) |
const |
|
inline |
Definition at line 131 of file G4StateManager.cc.
133 if (!theStateManager)
137 return theStateManager;
Definition at line 247 of file G4StateManager.cc.
253 stateName =
"PreInit";
break;
255 stateName =
"Init";
break;
257 stateName =
"Idle";
break;
259 stateName =
"GeomClosed";
break;
261 stateName =
"EventProc";
break;
263 stateName =
"Quit";
break;
265 stateName =
"Abort";
break;
267 stateName =
"Unknown";
break;
G4int G4StateManager::GetSuppressAbortion |
( |
| ) |
const |
|
inline |
Definition at line 141 of file G4StateManager.cc.
146 theDependentsList.push_back(aDependent);
150 if(theBottomDependent)
152 theDependentsList.push_back(theBottomDependent);
154 theBottomDependent = aDependent;
Definition at line 227 of file G4StateManager.cc.
230 for (std::vector<G4VStateDependent*>::iterator i=theDependentsList.begin();
231 i!=theDependentsList.end();)
233 if (**i==*aDependent)
236 i = theDependentsList.erase(i);
Definition at line 192 of file G4StateManager.cc.
G4bool SetNewState(G4ApplicationState requestedState)
Definition at line 196 of file G4StateManager.cc.
200 if(suppressAbortion==2) {
return false; }
207 thePreviousState = theCurrentState;
208 while ((ack) && (i<theDependentsList.size()))
210 ack = theDependentsList[i]->Notify(requestedState);
213 if(theBottomDependent)
215 ack = theBottomDependent->
Notify(requestedState);
219 { thePreviousState = savedState; }
221 { theCurrentState = requestedState; }
virtual G4bool Notify(G4ApplicationState requestedState)=0
void G4StateManager::SetSuppressAbortion |
( |
G4int |
i | ) |
|
|
inline |
The documentation for this class was generated from the following files: