ThePEG::Triplet< T1, T2, T3 > Struct Template Reference

The Triplet class represents a general triplet of objects completely analogous to std::pair. More...

#include <Triplet.h>

List of all members.

Public Types

typedef T1 first_type
 The type of the first member.
typedef T2 second_type
 The type of the second member.
typedef T3 third_type
 The type of the third member.

Public Member Functions

 Triplet ()
 Default construcotr.
 Triplet (const T1 &t1, const T2 &t2, const T3 &t3)
 Constructor specifying the three members.
 Triplet (const Triplet< T1, T2, T3 > &t)
 Copy constructor.
template<typename U1, typename U2, typename U3>
 Triplet (const Triplet< U1, U2, U3 > &u)
 Copy constructor from other Triplet type.
bool operator== (const Triplet< T1, T2, T3 > &t) const
 Test for equality.
bool operator< (const Triplet< T1, T2, T3 > &t) const
 Test for ordering.

Public Attributes

T1 first
 The first member.
T2 second
 The second member.
T3 third
 The third member.


Detailed Description

template<typename T1, typename T2, typename T3>
struct ThePEG::Triplet< T1, T2, T3 >

The Triplet class represents a general triplet of objects completely analogous to std::pair.

Definition at line 21 of file Triplet.h.


Member Typedef Documentation

template<typename T1, typename T2, typename T3>
typedef T1 ThePEG::Triplet< T1, T2, T3 >::first_type

The type of the first member.

Definition at line 24 of file Triplet.h.

template<typename T1, typename T2, typename T3>
typedef T2 ThePEG::Triplet< T1, T2, T3 >::second_type

The type of the second member.

Definition at line 26 of file Triplet.h.

template<typename T1, typename T2, typename T3>
typedef T3 ThePEG::Triplet< T1, T2, T3 >::third_type

The type of the third member.

Definition at line 28 of file Triplet.h.


Constructor & Destructor Documentation

template<typename T1, typename T2, typename T3>
ThePEG::Triplet< T1, T2, T3 >::Triplet (  )  [inline]

Default construcotr.

Definition at line 38 of file Triplet.h.

template<typename T1, typename T2, typename T3>
ThePEG::Triplet< T1, T2, T3 >::Triplet ( const T1 &  t1,
const T2 &  t2,
const T3 &  t3 
) [inline]

Constructor specifying the three members.

Definition at line 41 of file Triplet.h.

template<typename T1, typename T2, typename T3>
ThePEG::Triplet< T1, T2, T3 >::Triplet ( const Triplet< T1, T2, T3 > &  t  )  [inline]

Copy constructor.

Definition at line 45 of file Triplet.h.

template<typename T1, typename T2, typename T3>
template<typename U1, typename U2, typename U3>
ThePEG::Triplet< T1, T2, T3 >::Triplet ( const Triplet< U1, U2, U3 > &  u  )  [inline]

Copy constructor from other Triplet type.

Definition at line 50 of file Triplet.h.


Member Function Documentation

template<typename T1, typename T2, typename T3>
bool ThePEG::Triplet< T1, T2, T3 >::operator== ( const Triplet< T1, T2, T3 > &  t  )  const [inline]

template<typename T1, typename T2, typename T3>
bool ThePEG::Triplet< T1, T2, T3 >::operator< ( const Triplet< T1, T2, T3 > &  t  )  const [inline]

Test for ordering.

Returns:
first < t.first || ( * !(t.first < first) && ( second < t.second || ( !(t.second < second) && third < t.third )))

Definition at line 62 of file Triplet.h.

References ThePEG::Triplet< T1, T2, T3 >::first, ThePEG::Triplet< T1, T2, T3 >::second, and ThePEG::Triplet< T1, T2, T3 >::third.


Member Data Documentation

template<typename T1, typename T2, typename T3>
T1 ThePEG::Triplet< T1, T2, T3 >::first

template<typename T1, typename T2, typename T3>
T2 ThePEG::Triplet< T1, T2, T3 >::second

template<typename T1, typename T2, typename T3>
T3 ThePEG::Triplet< T1, T2, T3 >::third


The documentation for this struct was generated from the following file:

Generated on Thu Apr 29 12:43:25 2010 for ThePEG by  doxygen 1.5.5