Mantid
|
Triple of three identical types. More...
#include <Triple.h>
Public Member Functions | |
bool | operator!= (const Triple< T > &) const |
Operator!= any component is not equal. More... | |
bool | operator< (const Triple< T > &) const |
Operator< takes first to last precidence. More... | |
Triple< T > & | operator= (const Triple< T > &) |
Standard Assignment Constructor. More... | |
bool | operator== (const Triple< T > &) const |
Operator== all components must be equal. More... | |
bool | operator> (const Triple< T > &) const |
Operator> takes first to last precidence. More... | |
T & | operator[] (const int A) |
Accessor Reference Function. More... | |
T | operator[] (const int A) const |
Accessor Value Function. More... | |
Triple () | |
Standard Constructor. More... | |
Triple (const T &, const T &, const T &) | |
Constructor from a 3 value input. More... | |
Triple (const Triple< T > &) | |
Standard Copy Constructor. More... | |
~Triple () | |
Standard Destructor. More... | |
Public Attributes | |
T | first |
First item. More... | |
T | second |
Second item. More... | |
T | third |
Third item. More... | |
Triple of three identical types.
Class maintians a type first/second/third triple similar to std::pair except all are identical
Mantid::Triple< T >::Triple |
Standard Constructor.
Definition at line 13 of file Triple.cpp.
Mantid::Triple< T >::Triple | ( | const Triple< T > & | A | ) |
Standard Copy Constructor.
A | :: Triple Item to copy |
Definition at line 21 of file Triple.cpp.
Mantid::Triple< T >::Triple | ( | const T & | A, |
const T & | B, | ||
const T & | C | ||
) |
Constructor from a 3 value input.
A | :: first item |
B | :: second item |
C | :: third item |
Definition at line 30 of file Triple.cpp.
|
default |
Standard Destructor.
References std::operator!=(), std::operator<(), std::operator==(), and std::operator>().
bool Mantid::Triple< T >::operator!= | ( | const Triple< T > & | A | ) | const |
Operator!= any component is not equal.
A | :: Other object to compare |
Definition at line 73 of file Triple.cpp.
bool Mantid::Triple< T >::operator< | ( | const Triple< T > & | A | ) | const |
Operator< takes first to last precidence.
A | :: Triple to compare |
Definition at line 84 of file Triple.cpp.
Triple< T > & Mantid::Triple< T >::operator= | ( | const Triple< T > & | A | ) |
Standard Assignment Constructor.
A | :: Triple Item to copy |
Definition at line 41 of file Triple.cpp.
References Mantid::Triple< T >::first, Mantid::Triple< T >::second, and Mantid::Triple< T >::third.
bool Mantid::Triple< T >::operator== | ( | const Triple< T > & | A | ) | const |
Operator== all components must be equal.
Definition at line 64 of file Triple.cpp.
bool Mantid::Triple< T >::operator> | ( | const Triple< T > & | A | ) | const |
Operator> takes first to last precidence.
Uses operator< to obtain value. Note it does not uses 1-(A<this)
A | :: Triple to compare |
Definition at line 105 of file Triple.cpp.
T & Mantid::Triple< T >::operator[] | ( | const int | A | ) |
Accessor Reference Function.
A | :: Index to item to get 0-2 |
Definition at line 118 of file Triple.cpp.
T Mantid::Triple< T >::operator[] | ( | const int | A | ) | const |
Accessor Value Function.
A | :: Index to item to get 0-2 |
Definition at line 138 of file Triple.cpp.
T Mantid::Triple< T >::first |
T Mantid::Triple< T >::second |
Second item.
Definition at line 25 of file Triple.h.
Referenced by Mantid::Triple< T >::operator=().
T Mantid::Triple< T >::third |