X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONStringIntMap.h;h=b86ba05016aa1e27f6ff52716b551463c4224f46;hb=c242651ae89d927bae802bd528370940b786ae1e;hp=d574c81fe4f6b0d9672814cba078d17970797fb8;hpb=a9aad96e253c5dad5b74464038546a9bf4234ecc;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONStringIntMap.h b/MUON/AliMUONStringIntMap.h index d574c81fe4f..b86ba05016a 100644 --- a/MUON/AliMUONStringIntMap.h +++ b/MUON/AliMUONStringIntMap.h @@ -3,7 +3,7 @@ // $Id$ -/// \ingroup geometry +/// \ingroup core /// \class AliMUONStringIntMap /// \brief Substitutes map 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