test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes
Triplet< T1, T2, T3 > Struct Template Reference

#include <Triplet.h>

Public Types

typedef T1 first_type
 
typedef T2 second_type
 
typedef T3 third_type
 

Public Member Functions

 Triplet ()
 
 Triplet (const T1 &a, const T2 &b, const T3 &c)
 
template<class U1 , class U2 , class U3 >
 Triplet (const Triplet< U1, U2, U3 > &p)
 

Public Attributes

T1 first
 
T2 second
 
T3 third
 

Detailed Description

template<class T1, class T2, class T3>
struct Triplet< T1, T2, T3 >

triplet is identical to stl::pair exceot that it has three members instead of two (first, second, third).

Definition at line 9 of file Triplet.h.

Member Typedef Documentation

template<class T1, class T2, class T3>
typedef T1 Triplet< T1, T2, T3 >::first_type

Definition at line 10 of file Triplet.h.

template<class T1, class T2, class T3>
typedef T2 Triplet< T1, T2, T3 >::second_type

Definition at line 11 of file Triplet.h.

template<class T1, class T2, class T3>
typedef T3 Triplet< T1, T2, T3 >::third_type

Definition at line 12 of file Triplet.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file Triplet.h.

17 : first(T1()), second(T2()), third(T3()) {}
T2 second
Definition: Triplet.h:15
T3 third
Definition: Triplet.h:16
T1 first
Definition: Triplet.h:14
template<class T1, class T2, class T3>
Triplet< T1, T2, T3 >::Triplet ( const T1 &  a,
const T2 &  b,
const T3 &  c 
)
inline

Definition at line 18 of file Triplet.h.

18  :
19  first(a), second(b), third(c) {}
T2 second
Definition: Triplet.h:15
T3 third
Definition: Triplet.h:16
T1 first
Definition: Triplet.h:14
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T1, class T2, class T3>
template<class U1 , class U2 , class U3 >
Triplet< T1, T2, T3 >::Triplet ( const Triplet< U1, U2, U3 > &  p)
inline

Definition at line 22 of file Triplet.h.

22  :
23  first(p.first), second(p.second), third(p.third) {}
T2 second
Definition: Triplet.h:15
T3 third
Definition: Triplet.h:16
T1 first
Definition: Triplet.h:14

Member Data Documentation

template<class T1, class T2, class T3>
T1 Triplet< T1, T2, T3 >::first
template<class T1, class T2, class T3>
T2 Triplet< T1, T2, T3 >::second
template<class T1, class T2, class T3>
T3 Triplet< T1, T2, T3 >::third

Definition at line 16 of file Triplet.h.

Referenced by GsfBetheHeitlerUpdator::compute(), and operator==().