AliRoot Core  3dc7879 (3dc7879)
AliMpIntPair Class Reference

A pair of integers. More...

#include <AliMpIntPair.h>

Inheritance diagram for AliMpIntPair:

Public Member Functions

 AliMpIntPair (Int_t ix, Int_t iy)
 AliMpIntPair (Int_t ix, Int_t iy, Bool_t validity)
 AliMpIntPair (const AliMpIntPair &right)
 AliMpIntPair ()
virtual ~AliMpIntPair ()
Bool_t operator< (const AliMpIntPair &pos2) const
Bool_t operator== (const AliMpIntPair &pos2) const
Bool_t operator!= (const AliMpIntPair &pos2) const
AliMpIntPairoperator= (const AliMpIntPair &src)
void operator+= (const AliMpIntPair &op)
void operator-= (const AliMpIntPair &op)
Int_t GetFirst () const
 Return first value. More...
Int_t GetSecond () const
 Return second value. More...
Bool_t IsValid () const
 Return validity. More...
void SetFirst (Int_t ix)
 Set first value. More...
void SetSecond (Int_t iy)
 Set second value. More...
void Set (Int_t ix, Int_t iy)
 Set both first and second value. More...
virtual Bool_t IsSortable () const
 Return true as Compare() function is implemented. More...
virtual Int_t Compare (const TObject *obj) const

Static Public Member Functions

static AliMpIntPair Invalid ()
 Return invalid pair. More...

Private Attributes

Int_t fFirst
 the first value More...
Int_t fSecond
 the second value More...
Bool_t fValidity
 validity More...

Detailed Description

A pair of integers.

The pair created by the default constructor is in invalide state, setting one of values changes the state to valid.

David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 23 of file AliMpIntPair.h.

Constructor & Destructor Documentation

AliMpIntPair::AliMpIntPair ( Int_t  ix,
Int_t  iy 

Standard constructor

Definition at line 54 of file AliMpIntPair.cxx.

AliMpIntPair::AliMpIntPair ( Int_t  ix,
Int_t  iy,
Bool_t  validity 

Standard constructor with validity argument

Definition at line 64 of file AliMpIntPair.cxx.

AliMpIntPair::AliMpIntPair ( const AliMpIntPair right)

Copy constructor

Definition at line 86 of file AliMpIntPair.cxx.

AliMpIntPair::AliMpIntPair ( )

Default constructor

Definition at line 74 of file AliMpIntPair.cxx.

Referenced by Invalid(), operator*(), operator+(), and operator-().

AliMpIntPair::~AliMpIntPair ( )


Definition at line 96 of file AliMpIntPair.cxx.

Member Function Documentation

Int_t AliMpIntPair::Compare ( const TObject *  obj) const

Compare using operator <

Definition at line 158 of file AliMpIntPair.cxx.

Referenced by IsSortable().

Int_t AliMpIntPair::GetFirst ( ) const
Int_t AliMpIntPair::GetSecond ( ) const
static AliMpIntPair AliMpIntPair::Invalid ( )

Return invalid pair.

Definition at line 44 of file AliMpIntPair.h.

virtual Bool_t AliMpIntPair::IsSortable ( ) const

Return true as Compare() function is implemented.

Definition at line 70 of file AliMpIntPair.h.

Bool_t AliMpIntPair::IsValid ( ) const

Return validity.

Definition at line 54 of file AliMpIntPair.h.

Referenced by operator*(), operator+(), operator-(), and operator<<().

Bool_t AliMpIntPair::operator!= ( const AliMpIntPair pos2) const

Non-equality operator

Definition at line 131 of file AliMpIntPair.cxx.

void AliMpIntPair::operator+= ( const AliMpIntPair op)

Incrementation operator

Definition at line 171 of file AliMpIntPair.cxx.

void AliMpIntPair::operator-= ( const AliMpIntPair op)

Decrementation operator

Definition at line 182 of file AliMpIntPair.cxx.

Bool_t AliMpIntPair::operator< ( const AliMpIntPair pos2) const

Less operator

Definition at line 102 of file AliMpIntPair.cxx.

AliMpIntPair & AliMpIntPair::operator= ( const AliMpIntPair src)

Assignment operator

Definition at line 140 of file AliMpIntPair.cxx.

Bool_t AliMpIntPair::operator== ( const AliMpIntPair pos2) const

Equality operator

Definition at line 114 of file AliMpIntPair.cxx.

void AliMpIntPair::Set ( Int_t  ix,
Int_t  iy 

Set both first and second value.

Definition at line 64 of file AliMpIntPair.h.

void AliMpIntPair::SetFirst ( Int_t  ix)

Set first value.

Definition at line 60 of file AliMpIntPair.h.

void AliMpIntPair::SetSecond ( Int_t  iy)

Set second value.

Definition at line 62 of file AliMpIntPair.h.

Member Data Documentation

Int_t AliMpIntPair::fFirst

the first value

Definition at line 75 of file AliMpIntPair.h.

Referenced by GetFirst(), operator+=(), operator-=(), operator<(), operator=(), operator==(), Set(), and SetFirst().

Int_t AliMpIntPair::fSecond

the second value

Definition at line 76 of file AliMpIntPair.h.

Referenced by GetSecond(), operator+=(), operator-=(), operator<(), operator=(), operator==(), Set(), and SetSecond().

Bool_t AliMpIntPair::fValidity


Definition at line 77 of file AliMpIntPair.h.

Referenced by IsValid(), operator+=(), operator-=(), operator=(), operator==(), Set(), SetFirst(), and SetSecond().

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