]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4IntMap.h
Containers definition
[u/mrichter/AliRoot.git] / TGeant4 / TG4IntMap.h
CommitLineData
2817d3e2 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
63c8351a 9#include <g4std/map>
10#include <globals.hh>
2817d3e2 11
12class 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
a8f41ccf 36 G4std::map<G4String, G4int, G4std::less<G4String> > fMap; //map container
2817d3e2 37};
38
39#endif //TG4_NAME_MAP_H