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

Method ListCurrent

source/intercoms/src/G4UIcommandTree.cc:384–416  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

382
383// --------------------------------------------------------------------
384void G4UIcommandTree::ListCurrent() const
385{
386 G4cout << "Command directory path : " << pathName << G4endl;
387 if (guidance != nullptr) {
388 guidance->List();
389 }
390 G4cout << " Sub-directories : " << G4endl;
391 std::size_t n_treeEntry = tree.size();
392 for (std::size_t i_thTree = 0; i_thTree < n_treeEntry; ++i_thTree) {
393 G4cout << " " << tree[i_thTree]->GetPathName();
394 if ((tree[i_thTree]->GetGuidance() != nullptr)
395 && tree[i_thTree]->GetGuidance()->IsWorkerThreadOnly())
396 {
397 G4cout << " @ ";
398 }
399 else {
400 G4cout << " ";
401 }
402 G4cout << tree[i_thTree]->GetTitle() << G4endl;
403 }
404 G4cout << " Commands : " << G4endl;
405 std::size_t n_commandEntry = command.size();
406 for (std::size_t i_thCommand = 0; i_thCommand < n_commandEntry; ++i_thCommand) {
407 G4cout << " " << command[i_thCommand]->GetCommandName();
408 if (command[i_thCommand]->IsWorkerThreadOnly()) {
409 G4cout << " @ ";
410 }
411 else {
412 G4cout << " * ";
413 }
414 G4cout << command[i_thCommand]->GetTitle() << G4endl;
415 }
416}
417
418// --------------------------------------------------------------------
419void G4UIcommandTree::ListCurrentWithNum() const

Callers 1

ListDirectoryMethod · 0.80

Calls 5

GetGuidanceMethod · 0.80
IsWorkerThreadOnlyMethod · 0.80
ListMethod · 0.45
sizeMethod · 0.45
GetTitleMethod · 0.45

Tested by

no test coverage detected