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

Method GetPreviousCommand

source/intercoms/include/G4UImanager.hh:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 inline G4int GetVerboseLevel() const { return verboseLevel; }
193 inline G4int GetNumberOfHistory() const { return G4int(histVec.size()); }
194 inline G4String GetPreviousCommand(G4int i) const
195 {
196 G4String st;
197 if (i >= 0 && i < G4int(histVec.size())) {
198 st = histVec[i];
199 }
200 return st;
201 }
202 inline void SetMaxHistSize(G4int mx) { maxHistSize = mx; }
203 inline G4int GetMaxHistSize() const { return maxHistSize; }
204

Callers 3

ApplyShellCommandMethod · 0.80
GetCommandMethod · 0.80
GetCommandMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected