]>
Commit | Line | Data |
---|---|---|
6cc447df | 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 AliMUON2DStore | |
a9b67123 | 8 | /// \brief Generic container indexed by a pair of integers. |
6cc447df | 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 AliMUONV2DStore : public TObject | |
20 | { | |
21 | public: | |
9d5f6a64 | 22 | AliMUONV2DStore(); |
6cc447df | 23 | virtual ~AliMUONV2DStore(); |
24 | ||
a9b67123 | 25 | /// Return the object stored at (i,j). |
6cc447df | 26 | virtual TObject* Get(Int_t i, Int_t j) const = 0; |
a9b67123 | 27 | |
28 | /** Set the object stored at (i,j). | |
29 | if replace=false and there's already an object there, returns kFALSE | |
30 | */ | |
6cc447df | 31 | virtual Bool_t Set(Int_t i, Int_t j, TObject*, Bool_t replace) = 0; |
a9b67123 | 32 | |
33 | /// Whether or not this container is the owner of its contents. | |
6cc447df | 34 | virtual Bool_t IsOwner() const = 0; |
35 | ||
36 | private: | |
a9b67123 | 37 | ClassDef(AliMUONV2DStore,0) // Generic container indexed by a pair of integers |
6cc447df | 38 | }; |
39 | ||
40 | #endif |