AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONObjectPair Class Reference

The equivalent of a std::pair<TObject*,TObject*> ;-) More...

#include <AliMUONObjectPair.h>

Inheritance diagram for AliMUONObjectPair:

Public Member Functions

 AliMUONObjectPair ()
 
 AliMUONObjectPair (TObject *first, TObject *second, Bool_t isOwnerOfFirst=kTRUE, Bool_t isOwnerOfSecond=kFALSE)
 
 AliMUONObjectPair (const AliMUONObjectPair &other)
 
AliMUONObjectPairoperator= (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...
 

Detailed Description

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...

Author
Laurent Aphecetche

Definition at line 19 of file AliMUONObjectPair.h.

Constructor & Destructor Documentation

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.

AliMUONObjectPair::~AliMUONObjectPair ( )
virtual

dtor

Definition at line 101 of file AliMUONObjectPair.cxx.

Member Function Documentation

void AliMUONObjectPair::Clear ( Option_t *  opt = "")
virtual

Reset

Definition at line 111 of file AliMUONObjectPair.cxx.

void AliMUONObjectPair::Copy ( TObject &  other) const
virtual

Copy this to other (used by copy ctor and operator=)

Definition at line 122 of file AliMUONObjectPair.cxx.

Referenced by AliMUONObjectPair(), and operator=().

TObject* AliMUONObjectPair::First ( ) const
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().

TObject* AliMUONObjectPair::Key ( ) const
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.

void AliMUONObjectPair::Print ( Option_t *  opt = "") const
virtual

Printout

Definition at line 150 of file AliMUONObjectPair.cxx.

TObject* AliMUONObjectPair::Second ( ) const
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().

TObject* AliMUONObjectPair::Value ( ) const
inline

Return the second element of the pair.

Definition at line 40 of file AliMUONObjectPair.h.

Member Data Documentation

TObject* AliMUONObjectPair::fFirst
private

first element of the pair

Definition at line 50 of file AliMUONObjectPair.h.

Referenced by Clear(), Copy(), First(), Key(), and ~AliMUONObjectPair().

Bool_t AliMUONObjectPair::fIsOwnerOfFirst
private

whether we own the first element

Definition at line 52 of file AliMUONObjectPair.h.

Referenced by Clear(), Copy(), and ~AliMUONObjectPair().

Bool_t AliMUONObjectPair::fIsOwnerOfSecond
private

whether we own the second element

Definition at line 53 of file AliMUONObjectPair.h.

Referenced by Clear(), Copy(), and ~AliMUONObjectPair().

TObject* AliMUONObjectPair::fSecond
private

second element of the pair

Definition at line 51 of file AliMUONObjectPair.h.

Referenced by Clear(), Copy(), Second(), Value(), and ~AliMUONObjectPair().


The documentation for this class was generated from the following files: