]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONStringIntMap.h
Fix coverity defect
[u/mrichter/AliRoot.git] / MUON / AliMUONStringIntMap.h
index d574c81fe4f6b0d9672814cba078d17970797fb8..b86ba05016aa1e27f6ff52716b551463c4224f46 100644 (file)
@@ -3,7 +3,7 @@
 
 // $Id$
 
-/// \ingroup geometry
+/// \ingroup core
 /// \class AliMUONStringIntMap
 /// \brief Substitutes map <string, int> which ALICE does not allow to use 
 ///
@@ -24,14 +24,23 @@ 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);
+    /// Not implemented
     AliMUONStringIntMap& operator = (const AliMUONStringIntMap& rhs);
  
   private:
@@ -39,8 +48,9 @@ class AliMUONStringIntMap : public TObject
     Int_t      fNofItems;    ///< number of items
     TObjArray  fFirstArray;  ///< first item array
     TArrayI    fSecondArray; ///< second item array
-  ClassDef(AliMUONStringIntMap,1)  // motif map
+    Int_t      fCurrentIndex;///< current index
+
+  ClassDef(AliMUONStringIntMap,2)  // motif map
 };    
 
 #endif //ALI_MUON_STRING_INT_MAP_H