73 if (i ==
fMap.end()) {
76 "TG4IntMap",
"GetSecond", TString(name) +
" is not defined.");
98 G4cout <<
"Dump of TG4IntMap - " <<
fMap.size() <<
" entries:" << G4endl;
101 const G4String& first = (*i).first;
102 G4int second = (*i).second;
103 G4cout <<
"Map element " << std::setw(3) << counter++ <<
" " << first
104 <<
" " << second << G4endl;
Definition of the TG4Globals class and basic container types.
Definition of the TG4IntMap class.
static void Warning(const TString &className, const TString &methodName, const TString &text)
Map::iterator MapIterator
The iterator for the map of integers to strings.
Map::const_iterator MapConstIterator
The constant iterator for the map of integers to strings.
G4int GetSecond(const G4String &name, G4bool warn=true)
G4bool Add(const G4String &first, G4int second)
G4bool IsDefined(const G4String &first)