]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4IntMap.h
Changed for new Aliroot version.
[u/mrichter/AliRoot.git] / TGeant4 / TG4IntMap.h
index 6c72f91eae676a698ba041107e7c10c27399a1c3..16e57d9de82a23f82803ba4a52262d82b3b49bb7 100644 (file)
@@ -1,6 +1,10 @@
 // $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
@@ -19,8 +27,8 @@ class TG4IntMap
 
     // 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:
@@ -33,7 +41,7 @@ class TG4IntMap
     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