8 #ifndef META_OCEAN_BASE_TRIPLE_H
9 #define META_OCEAN_BASE_TRIPLE_H
17 template <
typename T1,
typename T2,
typename T3>
class Triple;
26 template <
typename T1,
typename T2,
typename T3>
48 inline const T1&
first()
const;
60 inline const T2&
second()
const;
72 inline const T3&
third()
const;
113 template <
typename T1,
typename T2,
typename T3>
122 template <
typename T1,
typename T2,
typename T3>
125 tripleSecond(second),
131 template <
typename T1,
typename T2,
typename T3>
137 template <
typename T1,
typename T2,
typename T3>
143 template <
typename T1,
typename T2,
typename T3>
149 template <
typename T1,
typename T2,
typename T3>
155 template <
typename T1,
typename T2,
typename T3>
161 template <
typename T1,
typename T2,
typename T3>
167 template <
typename T1,
typename T2,
typename T3>
173 template <
typename T1,
typename T2,
typename T3>
176 return !(*
this == triple);
179 template <
typename T1,
typename T2,
typename T3>
This class implements a triple object able to hold three individual elements.
Definition: Triple.h:28
T3 tripleThird
Third element of this triple.
Definition: Triple.h:110
const T1 & first() const
Returns the first element of this triple object.
Definition: Triple.h:132
Triple()
Creates a new triple object with default values.
Definition: Triple.h:114
const T3 & third() const
Returns the third element of this triple object.
Definition: Triple.h:156
bool operator<(const Triple< T1, T2, T3 > &triple) const
Returns whether this triple object is 'lesser' than a second triple object.
Definition: Triple.h:180
const T2 & second() const
Returns the second element of this triple object.
Definition: Triple.h:144
T1 tripleFirst
First element of this triple.
Definition: Triple.h:104
T2 tripleSecond
Second element of this triple.
Definition: Triple.h:107
bool operator!=(const Triple< T1, T2, T3 > &triple) const
Returns whether two triples are not equal.
Definition: Triple.h:174
bool operator==(const Triple< T1, T2, T3 > &triple) const
Returns whether two triples are equal.
Definition: Triple.h:168
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15