Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

Quadruple< T1, T2, T3, T4 > Class Template Reference
[Miscellaneous]

Quadruple Class. More...

#include <quadruple.h>

List of all members.

Public Member Functions

virtual void clear () throw ()
 Clear method.
Constructors and Destructors
 Quadruple () throw ()
 Default constructor.
 Quadruple (const Quadruple &quadruple, bool deep=true) throw ()
 Copy constructor.
 Quadruple (const T1 &new_first, const T2 &new_second, const T3 &new_third, const T4 &new_fourth) throw ()
 Detailled constructor.
virtual ~Quadruple () throw ()
 Destructor.
Assignment
const Quadrupleoperator= (const Quadruple &quadruple) throw ()
 Assignment operator.
void set (const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4) throw ()
void get (T1 &first, T2 &second, T3 &third, T4 &fourth) const throw ()
Predicates
bool operator== (const Quadruple &quadruple) const throw ()
 Equality operator Two instances are equal if they have the same members.
bool operator!= (const Quadruple &quadruple) const throw ()
 Inequality operator.
bool operator< (const Quadruple &quadruple) const throw ()
 Lesser than operator.
bool operator<= (const Quadruple &quadruple) const throw ()
 Lesser or equal than operator.
bool operator>= (const Quadruple &quadruple) const throw ()
 Greater or equal than operator.
bool operator> (const Quadruple &quadruple) const throw ()
 Greater than operator.

Public Attributes

Attributes
T1 first
 The first quadruple member.
T2 second
 The second quadruple member.
T3 third
 The third quadruple member.
T4 fourth
 The fourth quadruple member.


Detailed Description

template<typename T1, typename T2, typename T3, typename T4>
class Quadruple< T1, T2, T3, T4 >

Quadruple Class.

This template class is used to represent quadruples of arbitrary types (like the STL type pair).


Constructor & Destructor Documentation

template<typename T1, typename T2, typename T3, typename T4>
Quadruple< T1, T2, T3, T4 >::Quadruple  )  throw ()
 

Default constructor.

Creates a new Quadruple object.

template<typename T1, typename T2, typename T3, typename T4>
Quadruple< T1, T2, T3, T4 >::Quadruple const Quadruple< T1, T2, T3, T4 > &  quadruple,
bool  deep = true
throw ()
 

Copy constructor.

Creates a new Quadruple object from another.

Parameters:
quadruple the Quadruple object to be copied
deep not used (needed for a consistent interface only)

template<typename T1, typename T2, typename T3, typename T4>
Quadruple< T1, T2, T3, T4 >::Quadruple const T1 &  new_first,
const T2 &  new_second,
const T3 &  new_third,
const T4 &  new_fourth
throw ()
 

Detailled constructor.

Creates a new Quadruple object from the quadruple's four members.

Parameters:
new_first the first quadruple member
new_second the second quadruple member
new_third the third quadruple member
new_fourth the fourth quadruple member

template<typename T1, typename T2, typename T3, typename T4>
Quadruple< T1, T2, T3, T4 >::~Quadruple  )  throw () [virtual]
 

Destructor.

Destructs the Quadruple object.


Member Function Documentation

template<typename T1, typename T2, typename T3, typename T4>
void Quadruple< T1, T2, T3, T4 >::clear  )  throw () [virtual]
 

Clear method.

template<typename T1, typename T2, typename T3, typename T4>
bool Quadruple< T1, T2, T3, T4 >::operator< const Quadruple< T1, T2, T3, T4 > &  quadruple  )  const throw ()
 

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.

template<typename T1, typename T2, typename T3, typename T4>
bool Quadruple< T1, T2, T3, T4 >::operator<= const Quadruple< T1, T2, T3, T4 > &  quadruple  )  const throw ()
 

Lesser or equal than operator.

template<typename T1, typename T2, typename T3, typename T4>
const Quadruple< T1, T2, T3, T4 > & Quadruple< T1, T2, T3, T4 >::operator= const Quadruple< T1, T2, T3, T4 > &  quadruple  )  throw ()
 

Assignment operator.

Assigns the contents of a quadruple to another.

Parameters:
quadruple the quadruple to be copied

template<typename T1, typename T2, typename T3, typename T4>
bool Quadruple< T1, T2, T3, T4 >::operator== const Quadruple< T1, T2, T3, T4 > &  quadruple  )  const throw ()
 

Equality operator Two instances are equal if they have the same members.

template<typename T1, typename T2, typename T3, typename T4>
bool Quadruple< T1, T2, T3, T4 >::operator> const Quadruple< T1, T2, T3, T4 > &  quadruple  )  const throw ()
 

Greater than operator.

template<typename T1, typename T2, typename T3, typename T4>
bool Quadruple< T1, T2, T3, T4 >::operator>= const Quadruple< T1, T2, T3, T4 > &  quadruple  )  const throw ()
 

Greater or equal than operator.