114 G4cout <<
"Dump of map - " <<
fMap.size() <<
" entries:" << G4endl;
117 const G4String& first = (*i).first;
118 const G4String& second = (*i).second;
119 G4cout <<
"Map element " << std::setw(3) << counter++ <<
" " << first
120 <<
" " << second << G4endl;
125 G4cout <<
"Dump of inverse map - " <<
fInverseMap.size()
126 <<
" entries:" << G4endl;
130 const G4String& first = (*i).first;
131 const G4String& second = (*i).second;
132 G4cout <<
"Map element " << std::setw(3) << counter++ <<
" " << first
133 <<
" " << second << G4endl;
Definition of the TG4Globals class and basic container types.
Definition of the TG4NameMap class.
Map fInverseMap
inverse map container
G4bool Add(const G4String &first, const G4String &second)
const G4String & GetSecond(const G4String &first) const
Map::const_iterator MapConstIterator
The constant iterator for the map of strings to strings.
G4String fSecond
the current second
static G4String fgUndefined
the value of undefined second
const G4String & GetFirst(const G4String &second) const
G4bool AddName(const G4String &name)
G4bool AddInverse(const G4String &first, const G4String &second)