AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONObjectPair.h
Go to the documentation of this file.
1 #ifndef ALIMUONOBJECTPAIR_H
2 #define ALIMUONOBJECTPAIR_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author Laurent Aphecetche
14 
15 #ifndef ROOT_TObject
16 # include "TObject.h"
17 #endif
18 
19 class AliMUONObjectPair : public TObject
20 {
21 public:
23  AliMUONObjectPair(TObject* first,
24  TObject* second,
25  Bool_t isOwnerOfFirst=kTRUE,
26  Bool_t isOwnerOfSecond=kFALSE);
29 
30  virtual ~AliMUONObjectPair();
31 
33  TObject* First() const { return fFirst; }
35  TObject* Second() const { return fSecond; }
36 
38  TObject* Key() const { return fFirst; }
40  TObject* Value() const { return fSecond; }
41 
42  virtual void Copy(TObject& other) const;
43 
44  virtual void Print(Option_t* opt="") const;
45 
46  virtual void Clear(Option_t* opt="");
47 
48 private:
49 
50  TObject* fFirst;
51  TObject* fSecond;
52  Bool_t fIsOwnerOfFirst;
54 
55  ClassDef(AliMUONObjectPair,1) // A pair of TObject*
56 };
57 
58 #endif
Bool_t fIsOwnerOfSecond
whether we own the second element
TObject * First() const
Return the first element of the pair.
TObject * Key() const
Return the first element of the pair.
AliMUONObjectPair & operator=(const AliMUONObjectPair &other)
TObject * fSecond
second element of the pair
TObject * Second() const
Return the second element of the pair.
virtual void Clear(Option_t *opt="")
Bool_t fIsOwnerOfFirst
whether we own the first element
TObject * fFirst
first element of the pair
virtual void Copy(TObject &other) const
virtual void Print(Option_t *opt="") const
The equivalent of a std::pair<TObject*,TObject*> ;-)
TObject * Value() const
Return the second element of the pair.
return kTRUE
Definition: AliFMDv1.cxx:97