MCPcopy Create free account
hub / github.com/Geant4/geant4 / IsAvailable

Method IsAvailable

source/intercoms/src/G4UIcommand.cc:268–279  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

266
267// --------------------------------------------------------------------
268G4bool G4UIcommand::IsAvailable()
269{
270 G4ApplicationState currentState = G4StateManager::GetStateManager()->GetCurrentState();
271
272 for (const auto& s : availabelStateList) {
273 if (s == currentState) {
274 return true;
275 }
276 }
277
278 return false;
279}
280
281// --------------------------------------------------------------------
282G4double G4UIcommand::ValueOf(const char* unitName)

Callers 1

ApplyCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected