// $Id$
// Category: global
//
+// Author: I. Hrivnacova
+//
+// Class TG4IntMap
+// ---------------
// The map container for integer numbers associated with names.
#ifndef TG4_INT_MAP_H
class TG4IntMap
{
+ typedef G4std::map<G4String, G4int, G4std::less<G4String> > Map;
+ typedef Map:: iterator MapIterator;
+ typedef Map:: const_iterator MapConstIterator;
+
public:
TG4IntMap();
// --> protected
// methods
G4bool Add(const G4String& first, G4int second);
- G4int GetSecond(const G4String& name);
- void PrintAll();
+ G4int GetSecond(const G4String& name, G4bool warn = true);
+ void PrintAll() const;
void Clear();
protected:
G4bool IsDefined(const G4String& first);
// data members
- G4std::map<G4String, G4int, G4std::less<G4String> > fMap; //map container
+ Map fMap; //map container
};
#endif //TG4_NAME_MAP_H