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

Method ListCurrentWithNum

source/intercoms/src/G4UIcommandTree.cc:419–440  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

417
418// --------------------------------------------------------------------
419void G4UIcommandTree::ListCurrentWithNum() const
420{
421 G4cout << "Command directory path : " << pathName << G4endl;
422 if (guidance != nullptr) {
423 guidance->List();
424 }
425 G4int i = 0;
426 G4cout << " Sub-directories : " << G4endl;
427 std::size_t n_treeEntry = tree.size();
428 for (std::size_t i_thTree = 0; i_thTree < n_treeEntry; ++i_thTree) {
429 ++i;
430 G4cout << " " << i << ") " << tree[i_thTree]->GetPathName() << " "
431 << tree[i_thTree]->GetTitle() << G4endl;
432 }
433 G4cout << " Commands : " << G4endl;
434 std::size_t n_commandEntry = command.size();
435 for (std::size_t i_thCommand = 0; i_thCommand < n_commandEntry; ++i_thCommand) {
436 ++i;
437 G4cout << " " << i << ") " << command[i_thCommand]->GetCommandName() << " * "
438 << command[i_thCommand]->GetTitle() << G4endl;
439 }
440}
441
442// --------------------------------------------------------------------
443void G4UIcommandTree::List() const

Callers 1

TerminalHelpMethod · 0.80

Calls 3

ListMethod · 0.45
sizeMethod · 0.45
GetTitleMethod · 0.45

Tested by

no test coverage detected