]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONStringIntMap.h
Moving PbPb multiplicity in the new directory structure
[u/mrichter/AliRoot.git] / MUON / AliMUONStringIntMap.h
index d8cd2840e486c5dde1729f2f33c8d83f0ac741f3..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
@@ -24,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