![]() |
AliRoot Core
da88d91 (da88d91)
|
The equivalent of a std::pair<TObject*,TObject*> ;-) More...
#include <AliMUONObjectPair.h>
Public Member Functions | |
AliMUONObjectPair () | |
AliMUONObjectPair (TObject *first, TObject *second, Bool_t isOwnerOfFirst=kTRUE, Bool_t isOwnerOfSecond=kFALSE) | |
AliMUONObjectPair (const AliMUONObjectPair &other) | |
AliMUONObjectPair & | operator= (const AliMUONObjectPair &other) |
virtual | ~AliMUONObjectPair () |
TObject * | First () const |
Return the first element of the pair. More... | |
TObject * | Second () const |
Return the second element of the pair. More... | |
TObject * | Key () const |
Return the first element of the pair. More... | |
TObject * | Value () const |
Return the second element of the pair. More... | |
virtual void | Copy (TObject &other) const |
virtual void | Print (Option_t *opt="") const |
virtual void | Clear (Option_t *opt="") |
Private Attributes | |
TObject * | fFirst |
first element of the pair More... | |
TObject * | fSecond |
second element of the pair More... | |
Bool_t | fIsOwnerOfFirst |
whether we own the first element More... | |
Bool_t | fIsOwnerOfSecond |
whether we own the second element More... | |
The equivalent of a std::pair<TObject*,TObject*> ;-)
The equivalent of a std::pair<TObject*,TObject*> ;-)
What else can be said ? That if we'd been using STL, that class would not be there, thus saving some octets ? No comment.
Well, in fact, there is a difference wrt to std::pair : here we decide on the ownership of the first and/or second object...
Definition at line 19 of file AliMUONObjectPair.h.
AliMUONObjectPair::AliMUONObjectPair | ( | ) |
ctor
Definition at line 44 of file AliMUONObjectPair.cxx.
AliMUONObjectPair::AliMUONObjectPair | ( | TObject * | first, |
TObject * | second, | ||
Bool_t | isOwnerOfFirst = kTRUE , |
||
Bool_t | isOwnerOfSecond = kFALSE |
||
) |
ctor
Definition at line 56 of file AliMUONObjectPair.cxx.
AliMUONObjectPair::AliMUONObjectPair | ( | const AliMUONObjectPair & | other | ) |
copy ctor
Definition at line 76 of file AliMUONObjectPair.cxx.
|
virtual |
dtor
Definition at line 101 of file AliMUONObjectPair.cxx.
|
virtual |
Reset
Definition at line 111 of file AliMUONObjectPair.cxx.
|
virtual |
Copy this to other (used by copy ctor and operator=)
Definition at line 122 of file AliMUONObjectPair.cxx.
Referenced by AliMUONObjectPair(), and operator=().
|
inline |
Return the first element of the pair.
Definition at line 33 of file AliMUONObjectPair.h.
Referenced by AliMUONTrack::AliMUONTrack(), AliMUONTreeManager::GetClassName(), Print(), and AliMUONVTrackReconstructor::RemoveUsedSegments().
|
inline |
Return the first element of the pair.
Definition at line 38 of file AliMUONObjectPair.h.
AliMUONObjectPair & AliMUONObjectPair::operator= | ( | const AliMUONObjectPair & | other | ) |
assignement operator
Definition at line 90 of file AliMUONObjectPair.cxx.
|
virtual |
Printout
Definition at line 150 of file AliMUONObjectPair.cxx.
|
inline |
Return the second element of the pair.
Definition at line 35 of file AliMUONObjectPair.h.
Referenced by AliMUONTrack::AliMUONTrack(), AliMUONTreeManager::GetClassName(), Print(), and AliMUONVTrackReconstructor::RemoveUsedSegments().
|
inline |
Return the second element of the pair.
Definition at line 40 of file AliMUONObjectPair.h.
|
private |
first element of the pair
Definition at line 50 of file AliMUONObjectPair.h.
Referenced by Clear(), Copy(), First(), Key(), and ~AliMUONObjectPair().
|
private |
whether we own the first element
Definition at line 52 of file AliMUONObjectPair.h.
Referenced by Clear(), Copy(), and ~AliMUONObjectPair().
|
private |
whether we own the second element
Definition at line 53 of file AliMUONObjectPair.h.
Referenced by Clear(), Copy(), and ~AliMUONObjectPair().
|
private |
second element of the pair
Definition at line 51 of file AliMUONObjectPair.h.
Referenced by Clear(), Copy(), Second(), Value(), and ~AliMUONObjectPair().