This class implements a triple object able to hold three individual elements.
More...
|
| Triple () |
| Creates a new triple object with default values.
|
|
| Triple (const T1 &first, const T2 &second=T1(), const T3 &third=T3()) |
| Creates a new triple object with three elements.
|
|
const T1 & | first () const |
| Returns the first element of this triple object.
|
|
T1 & | first () |
| Returns the first element of this triple object.
|
|
const T2 & | second () const |
| Returns the second element of this triple object.
|
|
T2 & | second () |
| Returns the second element of this triple object.
|
|
const T3 & | third () const |
| Returns the third element of this triple object.
|
|
T3 & | third () |
| Returns the third element of this triple object.
|
|
bool | operator== (const Triple< T1, T2, T3 > &triple) const |
| Returns whether two triples are equal.
|
|
bool | operator!= (const Triple< T1, T2, T3 > &triple) const |
| Returns whether two triples are not equal.
|
|
bool | operator< (const Triple< T1, T2, T3 > &triple) const |
| Returns whether this triple object is 'lesser' than a second triple object.
|
|
template<typename T1, typename T2, typename T3>
class Ocean::Triple< T1, T2, T3 >
This class implements a triple object able to hold three individual elements.
- Template Parameters
-
T1 | Data type of the first element of the triple object |
T2 | Data type of the second element of the triple object |
T3 | Data type of the third element of the triple object |