Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pyG4UIcommand Namespace Reference

Functions

list f_GetStateList (G4UIcommand *acommand)
 

Function Documentation

list pyG4UIcommand::f_GetStateList ( G4UIcommand acommand)

Definition at line 44 of file pyG4UIcommand.cc.

References G4UIcommand::GetStateList().

Referenced by export_G4UIcommand().

45 {
46  list pyStateList;
47  std::vector<G4ApplicationState>* stateList= acommand->GetStateList();
48 
49  for( size_t i=0; i< stateList->size(); i++) {
50  pyStateList.append(&(*stateList)[i]);
51  }
52 
53  return pyStateList;
54 }
std::vector< G4ApplicationState > * GetStateList()
Definition: G4UIcommand.hh:147