CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

Triplet< T1, T2, T3 > Struct Template Reference

#include <Triplet.h>

List of all members.

Public Types

typedef T1 first_type
typedef T2 second_type
typedef T3 third_type

Public Member Functions

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

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.

: first(T1()), second(T2()), third(T3()) {}
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.

                                                 : 
    first(a), second(b), third(c) {}
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.

                                        : 
    first(p.first), second(p.second), third(p.third) {}

Member Data Documentation

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

Definition at line 14 of file Triplet.h.

Referenced by operator==().

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

Definition at line 15 of file Triplet.h.

Referenced by operator==().

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

Definition at line 16 of file Triplet.h.

Referenced by operator==().