]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4IntMap.h
56cfe908de13288525413f30836b2626fa990f62
[u/mrichter/AliRoot.git] / TGeant4 / TG4IntMap.h
1 // $Id$
2 // Category: global
3 //
4 // The map container for integer numbers associated with names.
5
6 #ifndef TG4_INT_MAP_H
7 #define TG4_INT_MAP_H
8
9 #include <g4std/map>
10 #include <globals.hh>
11
12 class TG4IntMap
13 {
14   public:
15     TG4IntMap();
16     // --> protected
17     // TG4IntMap(const TG4IntMap& right);
18     virtual ~TG4IntMap();
19
20     // methods
21     G4bool Add(const G4String& first, G4int second);  
22     G4int GetSecond(const G4String& name);
23     void PrintAll();
24     void Clear();
25
26   protected:
27     TG4IntMap(const TG4IntMap& right);
28
29     // operators
30     TG4IntMap& operator=(const TG4IntMap& right);
31   
32   private:
33     G4bool IsDefined(const G4String& first);
34   
35     // data members
36     G4std::map<G4String, G4int, G4std::less<G4String> > fMap;
37                                   //map container
38 };
39
40 #endif //TG4_NAME_MAP_H