#include <BALL/DATATYPE/quadruple.h>
Public Member Functions | |
virtual void | clear () |
Constructors and Destructors | |
Quadruple () | |
Quadruple (const Quadruple &quadruple, bool deep=true) | |
Quadruple (const T1 &new_first, const T2 &new_second, const T3 &new_third, const T4 &new_fourth) | |
virtual | ~Quadruple () |
Assignment | |
const Quadruple & | operator= (const Quadruple &quadruple) |
void | set (const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4) |
void | get (T1 &first, T2 &second, T3 &third, T4 &fourth) const |
Predicates | |
bool | operator== (const Quadruple &quadruple) const |
bool | operator!= (const Quadruple &quadruple) const |
bool | operator< (const Quadruple &quadruple) const |
bool | operator<= (const Quadruple &quadruple) const |
bool | operator>= (const Quadruple &quadruple) const |
bool | operator> (const Quadruple &quadruple) const |
Public Attributes | |
Attributes | |
T1 | first |
T2 | second |
T3 | third |
T4 | fourth |
Quadruple Class. This template class is used to represent quadruples of arbitrary types (like the STL type pair
).
BALL::Quadruple< T1, T2, T3, T4 >::Quadruple | ( | ) | [inline] |
Default constructor. Creates a new Quadruple object.
BALL::Quadruple< T1, T2, T3, T4 >::Quadruple | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple, | |
bool | deep = true | |||
) | [inline] |
BALL::Quadruple< T1, T2, T3, T4 >::Quadruple | ( | const T1 & | new_first, | |
const T2 & | new_second, | |||
const T3 & | new_third, | |||
const T4 & | new_fourth | |||
) | [inline] |
Detailled constructor. Creates a new Quadruple object from the quadruple's four members.
new_first | the first quadruple member | |
new_second | the second quadruple member | |
new_third | the third quadruple member | |
new_fourth | the fourth quadruple member |
BALL::Quadruple< T1, T2, T3, T4 >::~Quadruple | ( | ) | [inline, virtual] |
Destructor. Destructs the Quadruple object.
BALL_INLINE void BALL::Quadruple< T1, T2, T3, T4 >::clear | ( | ) | [inline, virtual] |
Clear method.
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE void BALL::Quadruple< T1, T2, T3, T4 >::get | ( | T1 & | first, | |
T2 & | second, | |||
T3 & | third, | |||
T4 & | fourth | |||
) | const [inline] |
BALL_INLINE bool BALL::Quadruple< T1, T2, T3, T4 >::operator!= | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | const [inline] |
Inequality operator
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE bool BALL::Quadruple< T1, T2, T3, T4 >::operator< | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | const [inline] |
Lesser than operator. One instance is lesser than an other if all members from first to third are equal or less than the members of the other instance and at least fourth is less.
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE bool BALL::Quadruple< T1, T2, T3, T4 >::operator<= | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | const [inline] |
Lesser or equal than operator.
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE const Quadruple< T1, T2, T3, T4 > & BALL::Quadruple< T1, T2, T3, T4 >::operator= | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | [inline] |
Assignment operator. Assigns the contents of a quadruple to another.
quadruple | the quadruple to be copied |
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE bool BALL::Quadruple< T1, T2, T3, T4 >::operator== | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | const [inline] |
Equality operator Two instances are equal if they have the same members.
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE bool BALL::Quadruple< T1, T2, T3, T4 >::operator> | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | const [inline] |
Greater than operator.
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE bool BALL::Quadruple< T1, T2, T3, T4 >::operator>= | ( | const Quadruple< T1, T2, T3, T4 > & | quadruple | ) | const [inline] |
Greater or equal than operator.
References BALL::Quadruple< T1, T2, T3, T4 >::first, BALL::Quadruple< T1, T2, T3, T4 >::fourth, BALL::Quadruple< T1, T2, T3, T4 >::second, and BALL::Quadruple< T1, T2, T3, T4 >::third.
BALL_INLINE void BALL::Quadruple< T1, T2, T3, T4 >::set | ( | const T1 & | t1, | |
const T2 & | t2, | |||
const T3 & | t3, | |||
const T4 & | t4 | |||
) | [inline] |
T1 BALL::Quadruple< T1, T2, T3, T4 >::first |
The first quadruple member
Referenced by BALL::Quadruple< T1, T2, T3, T4 >::clear(), BALL::Quadruple< T1, T2, T3, T4 >::get(), BALL::Quadruple< T1, T2, T3, T4 >::operator!=(), BALL::Quadruple< T1, T2, T3, T4 >::operator<(), BALL::Quadruple< T1, T2, T3, T4 >::operator<=(), BALL::Quadruple< T1, T2, T3, T4 >::operator=(), BALL::Quadruple< T1, T2, T3, T4 >::operator==(), BALL::Quadruple< T1, T2, T3, T4 >::operator>(), BALL::Quadruple< T1, T2, T3, T4 >::operator>=(), and BALL::Quadruple< T1, T2, T3, T4 >::set().
T4 BALL::Quadruple< T1, T2, T3, T4 >::fourth |
The fourth quadruple member
Referenced by BALL::Quadruple< T1, T2, T3, T4 >::operator!=(), BALL::Quadruple< T1, T2, T3, T4 >::operator<(), BALL::Quadruple< T1, T2, T3, T4 >::operator<=(), BALL::Quadruple< T1, T2, T3, T4 >::operator=(), BALL::Quadruple< T1, T2, T3, T4 >::operator==(), BALL::Quadruple< T1, T2, T3, T4 >::operator>(), and BALL::Quadruple< T1, T2, T3, T4 >::operator>=().
T2 BALL::Quadruple< T1, T2, T3, T4 >::second |
The second quadruple member
Referenced by BALL::Quadruple< T1, T2, T3, T4 >::clear(), BALL::Quadruple< T1, T2, T3, T4 >::get(), BALL::Quadruple< T1, T2, T3, T4 >::operator!=(), BALL::Quadruple< T1, T2, T3, T4 >::operator<(), BALL::Quadruple< T1, T2, T3, T4 >::operator<=(), BALL::Quadruple< T1, T2, T3, T4 >::operator=(), BALL::Quadruple< T1, T2, T3, T4 >::operator==(), BALL::Quadruple< T1, T2, T3, T4 >::operator>(), BALL::Quadruple< T1, T2, T3, T4 >::operator>=(), and BALL::Quadruple< T1, T2, T3, T4 >::set().
T3 BALL::Quadruple< T1, T2, T3, T4 >::third |
The third quadruple member
Referenced by BALL::Quadruple< T1, T2, T3, T4 >::clear(), BALL::Quadruple< T1, T2, T3, T4 >::get(), BALL::Quadruple< T1, T2, T3, T4 >::operator!=(), BALL::Quadruple< T1, T2, T3, T4 >::operator<(), BALL::Quadruple< T1, T2, T3, T4 >::operator<=(), BALL::Quadruple< T1, T2, T3, T4 >::operator=(), BALL::Quadruple< T1, T2, T3, T4 >::operator==(), BALL::Quadruple< T1, T2, T3, T4 >::operator>(), BALL::Quadruple< T1, T2, T3, T4 >::operator>=(), and BALL::Quadruple< T1, T2, T3, T4 >::set().