]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONV2DStore.h
Make this class non static, correct a bug (float instead of double) in ReadPCB, and...
[u/mrichter/AliRoot.git] / MUON / AliMUONV2DStore.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice                               */
3
4 // $Id$
5
6 /// \ingroup base
7 /// \class AliMUONV2DStore
8 /// \brief Generic container indexed by a pair of integers.
9 /// 
10 //  Author Laurent Aphecetche
11
12 #ifndef AliMUONV2DSTORE_H
13 #define AliMUONV2DSTORE_H
14
15 #ifndef ROOT_TObject
16 #  include "TObject.h"
17 #endif
18
19 class AliMUONVDataIterator;
20
21 class AliMUONV2DStore : public TObject
22 {
23 public:
24   AliMUONV2DStore();
25   virtual ~AliMUONV2DStore();
26   
27   /// Return an empty copy of self.
28   virtual AliMUONV2DStore* CloneEmpty() const { return 0x0; }
29   
30   virtual AliMUONVDataIterator* Iterator() const { return 0x0; }
31   
32   /// Return the object stored at (i,j).
33   virtual TObject* Get(Int_t i, Int_t j) const = 0;
34   
35   /** Set the object stored at (i,j).
36     if replace=false and there's already an object there, returns kFALSE
37     */
38   virtual Bool_t Set(Int_t i, Int_t j, TObject*, Bool_t replace) = 0;
39   
40   /// Whether or not this container is the owner of its contents.
41   virtual Bool_t IsOwner() const = 0;
42   
43 private:  
44   ClassDef(AliMUONV2DStore,0) // Generic container indexed by a pair of integers
45 };
46
47 #endif