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

Method List

source/intercoms/src/G4UIcommand.cc:323–347  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

321
322// --------------------------------------------------------------------
323void G4UIcommand::List()
324{
325 G4cout << G4endl;
326 G4cout << G4endl;
327 if (commandPath.back() != '/') {
328 G4cout << "Command " << commandPath << G4endl;
329 }
330 if (workerThreadOnly) {
331 G4cout << " ---- available only in worker thread" << G4endl;
332 }
333
334 G4cout << "Guidance :" << G4endl;
335 for (const auto& i_thGuidance : commandGuidance) {
336 G4cout << i_thGuidance << G4endl;
337 }
338
339 if (!rangeExpression.empty()) {
340 G4cout << " Range of parameters : " << rangeExpression << G4endl;
341 }
342
343 for (const auto& i_thParameter : parameter) {
344 i_thParameter->List();
345 }
346 G4cout << G4endl;
347}
348
349// --------------------------------------------------------------------
350G4String G4UIcommand::ConvertToString(G4bool boolVal)

Callers 3

TerminalHelpMethod · 0.45
ListCommandsMethod · 0.45
ListAliasMethod · 0.45

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected