thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
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>

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

◆ first_type

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.

◆ second_type

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.

◆ third_type

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

◆ Triplet() [1/4]

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

Default construcotr.

Definition at line 38 of file Triplet.h.

◆ Triplet() [2/4]

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.

◆ Triplet() [3/4]

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.

◆ Triplet() [4/4]

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

◆ operator<()

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.

◆ operator==()

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

Member Data Documentation

◆ first

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

The first member.

Definition at line 31 of file Triplet.h.

Referenced by ThePEG::Triplet< T1, T2, T3 >::operator<(), and ThePEG::Triplet< T1, T2, T3 >::operator==().

◆ second

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

The second member.

Definition at line 33 of file Triplet.h.

Referenced by ThePEG::Triplet< T1, T2, T3 >::operator<(), and ThePEG::Triplet< T1, T2, T3 >::operator==().

◆ third

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

The third member.

Definition at line 35 of file Triplet.h.

Referenced by ThePEG::Triplet< T1, T2, T3 >::operator<(), and ThePEG::Triplet< T1, T2, T3 >::operator==().


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