]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONStringIntMap.h
Fix for bug #70969: Memory leaks in AliTPCcalibDButil
[u/mrichter/AliRoot.git] / MUON / AliMUONStringIntMap.h
index f383806bc7ee2f3880eaad8c2b8e5d3be9981f02..b86ba05016aa1e27f6ff52716b551463c4224f46 100644 (file)
@@ -3,11 +3,11 @@
 
 // $Id$
 
-/// \ingroup geometry
+/// \ingroup core
 /// \class AliMUONStringIntMap
 /// \brief Substitutes map <string, int> which ALICE does not allow to use 
 ///
-/// Author: Ivana Hrivnacova, IPN Orsay
+/// \author Ivana Hrivnacova, IPN Orsay
 
 #ifndef ALI_MUON_STRING_INT_MAP_H
 #define ALI_MUON_STRING_INT_MAP_H
@@ -16,9 +16,6 @@
 #include <TObjArray.h>
 #include <TArrayI.h>
 
-class TGeoCombiTrans;
-class TGeoTranslation;
-
 class AliMUONStringIntMap : public TObject
 {
   public:
@@ -27,25 +24,33 @@ class AliMUONStringIntMap : public TObject
     
     // methods
     Bool_t  Add(const TString& first, Int_t second);
+    Bool_t  Set(const TString& first, Int_t second);
+    Int_t Contains(const TString& first) const;
+    
     Int_t   Get(const TString& first) const;
     Int_t   GetNofItems() const;
     virtual void Clear(Option_t* /*option*/ ="");
     virtual void Print(const char* /*option*/ = "") const;
     void Print(const TString& key, ofstream& out) const;
-    
+
+    // Methods for iterating over all elements    
+    Bool_t  Next(TString& first, Int_t& second);
+    void    ResetItr();
+
   protected:
+    /// Not implemented
     AliMUONStringIntMap(const AliMUONStringIntMap& rhs);
-
-    // operators  
+    /// Not implemented
     AliMUONStringIntMap& operator = (const AliMUONStringIntMap& rhs);
  
   private:
     // data members
-    Int_t      fNofItems;    // number of items
-    TObjArray  fFirstArray;  // first item array
-    TArrayI    fSecondArray; // second item array
-  ClassDef(AliMUONStringIntMap,1)  // motif map
+    Int_t      fNofItems;    ///< number of items
+    TObjArray  fFirstArray;  ///< first item array
+    TArrayI    fSecondArray; ///< second item array
+    Int_t      fCurrentIndex;///< current index
+
+  ClassDef(AliMUONStringIntMap,2)  // motif map
 };    
 
 #endif //ALI_MUON_STRING_INT_MAP_H