7 #ifndef BALL_DATATYPE_TRIPLE_H
8 #define BALL_DATATYPE_TRIPLE_H
23 template <
typename T1,
typename T2,
typename T3>
53 Triple(
const T1& new_first,
const T2& new_second,
const T3& new_third);
77 void set(
const T1& t1,
const T2& t2,
const T3& t3);
136 template <
typename T1,
typename T2,
typename T3>
141 template <
typename T1,
typename T2,
typename T3>
144 : first(triple.
first),
146 third(triple.
third) {
149 template <
typename T1,
typename T2,
typename T3>
151 (
const T1& new_first,
const T2& new_second,
const T3& new_third)
158 template <
typename T1,
typename T2,
typename T3>
163 template <
typename T1,
typename T2,
typename T3>
172 template <
typename T1,
typename T2,
typename T3>
177 first = triple.
first;
179 third = triple.
third;
184 template <
typename T1,
typename T2,
typename T3>
194 template <
typename T1,
typename T2,
typename T3>
199 return (first == triple.
first
200 && second == triple.
second
201 && third == triple.
third);
204 template <
typename T1,
typename T2,
typename T3>
209 return (first != triple.
first
210 || second != triple.
second
211 || third != triple.
third);
214 template <
typename T1,
typename T2,
typename T3>
223 template <
typename T1,
typename T2,
typename T3>
228 return ((first < triple.
first)
229 || ((first == triple.
first) && (second < triple.
second))
230 || ((first == triple.
first) && (second == triple.
second) && (third < triple.
third)));
233 template <
typename T1,
typename T2,
typename T3>
238 return ((first < triple.
first)
239 || ((first == triple.
first) && (second < triple.
second))
240 || ((first == triple.
first) && (second == triple.
second) && (third < triple.
third))
241 || ((first == triple.
first) && (second == triple.
second) && (third == triple.
third)));
244 template <
typename T1,
typename T2,
typename T3>
249 return ((first > triple.
first)
250 || ((first == triple.
first) && (second > triple.
second))
251 || ((first == triple.
first) && (second == triple.
second) && (third > triple.
third))
252 || ((first == triple.
first) && (second == triple.
second) && (third == triple.
third)));
255 template <
typename T1,
typename T2,
typename T3>
260 return ((first > triple.
first)
261 || ((first == triple.
first) && (second > triple.
second))
262 || ((first == triple.
first) && (second == triple.
second) && (third > triple.
third)));
266 #endif // BALL_DATATYPE_TRIPLE_H
#define BALL_CREATE(name)
bool operator>(const Triple &triple) const
void get(T1 &first, T2 &second, T3 &third) const
void set(const T1 &t1, const T2 &t2, const T3 &t3)
bool operator<(const Triple &triple) const
bool operator>=(const Triple &triple) const
bool operator<=(const Triple &triple) const
bool operator!=(const Triple &triple) const
const Triple & operator=(const Triple &triple)
bool operator==(const Triple &triple) const