1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONV2DStore
8 /// \brief Generic container indexed by a pair of integers.
10 // Author Laurent Aphecetche
12 #ifndef AliMUONV2DSTORE_H
13 #define AliMUONV2DSTORE_H
19 class AliMUONVDataIterator;
21 class AliMUONV2DStore : public TObject
25 virtual ~AliMUONV2DStore();
27 /// Return an empty copy of self.
28 virtual AliMUONV2DStore* CloneEmpty() const { return 0x0; }
30 /// Return the object stored at (i,j).
31 virtual TObject* Get(Int_t i, Int_t j) const = 0;
33 /// Whether or not this container is the owner of its contents.
34 virtual Bool_t IsOwner() const = 0;
37 virtual AliMUONVDataIterator* Iterator() const { return 0x0; }
39 /** Set the object stored at (i,j).
40 if replace=false and there's already an object there, returns kFALSE
42 virtual Bool_t Set(Int_t i, Int_t j, TObject*, Bool_t replace) = 0;
44 virtual void Print(Option_t* opt="") const;
47 ClassDef(AliMUONV2DStore,0) // Generic container indexed by a pair of integers