![]() |
AliRoot Core
3dc7879 (3dc7879)
|
A pair of integers. More...
#include <AliMpIntPair.h>
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 |
AliMpIntPair & | operator= (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... | |
A pair of integers.
The pair created by the default constructor is in invalide state, setting one of values changes the state to valid.
Definition at line 23 of file AliMpIntPair.h.
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-().
|
virtual |
Destructor
Definition at line 96 of file AliMpIntPair.cxx.
|
virtual |
Compare using operator <
Definition at line 158 of file AliMpIntPair.cxx.
Referenced by IsSortable().
|
inline |
Return first value.
Definition at line 50 of file AliMpIntPair.h.
Referenced by operator*(), operator+(), operator-(), operator<<(), AliMUONCalibrationData::PatchHVValues(), and AliMpDDLStore::SetManus().
|
inline |
Return second value.
Definition at line 52 of file AliMpIntPair.h.
Referenced by operator*(), operator+(), operator-(), operator<<(), AliMUONCalibrationData::PatchHVValues(), and AliMpDDLStore::SetManus().
|
inlinestatic |
Return invalid pair.
Definition at line 44 of file AliMpIntPair.h.
|
inlinevirtual |
Return true as Compare() function is implemented.
Definition at line 70 of file AliMpIntPair.h.
|
inline |
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.
|
inline |
Set both first and second value.
Definition at line 64 of file AliMpIntPair.h.
|
inline |
Set first value.
Definition at line 60 of file AliMpIntPair.h.
|
inline |
Set second value.
Definition at line 62 of file AliMpIntPair.h.
|
private |
the first value
Definition at line 75 of file AliMpIntPair.h.
Referenced by GetFirst(), operator+=(), operator-=(), operator<(), operator=(), operator==(), Set(), and SetFirst().
|
private |
the second value
Definition at line 76 of file AliMpIntPair.h.
Referenced by GetSecond(), operator+=(), operator-=(), operator<(), operator=(), operator==(), Set(), and SetSecond().
|
private |
validity
Definition at line 77 of file AliMpIntPair.h.
Referenced by IsValid(), operator+=(), operator-=(), operator=(), operator==(), Set(), SetFirst(), and SetSecond().