X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=TGeant4%2FTG4IntMap.h;h=16e57d9de82a23f82803ba4a52262d82b3b49bb7;hb=f243fbe6e13e9770c1b8baa4b482e93bd79bdd94;hp=6c72f91eae676a698ba041107e7c10c27399a1c3;hpb=a8f41ccff1e60293d09cd671d1380fd1055ed868;p=u%2Fmrichter%2FAliRoot.git diff --git a/TGeant4/TG4IntMap.h b/TGeant4/TG4IntMap.h index 6c72f91eae6..16e57d9de82 100644 --- a/TGeant4/TG4IntMap.h +++ b/TGeant4/TG4IntMap.h @@ -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 @@ -11,6 +15,10 @@ class TG4IntMap { + typedef G4std::map > 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 > fMap; //map container + Map fMap; //map container }; #endif //TG4_NAME_MAP_H