Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes
Saf::Collection::Triplet< T1, T2, T3 > Class Template Reference

A pair of values which may be of a different data type. More...

#include <Triplet.h>

Inheritance diagram for Saf::Collection::Triplet< T1, T2, T3 >:
Saf::Collection::Pair< T1, T2 >

List of all members.

Public Types

typedef T3 ThirdMemberType
 Third member type.

Public Member Functions

 Triplet ()
 Default constructor.
 Triplet (const T1 &v1)
 Constructor.
 Triplet (const T1 &v1, const T2 &v2)
 Constructor.
 Triplet (const T1 &v1, const T2 &v2, const T3 &v3)
 Constructor.
 Triplet (const Triplet< T1, T2, T3 > &t)
 Copy constructor.
Triplet< T1, T2, T3 > & operator= (const Triplet< T1, T2, T3 > &t)
 Assignment operator.
void Swap (Triplet< T1, T2, T3 > &t)
 Swap the content of two triplets.

Public Attributes

T3 m_third
 Third element.

Detailed Description

template<class T1, class T2, class T3>
class Saf::Collection::Triplet< T1, T2, T3 >

A pair of values which may be of a different data type.

See also:
Saf::Algo::SelectFirst, Saf::Algo::SelectSecond.

Member Typedef Documentation

template<class T1, class T2, class T3>
typedef T3 Saf::Collection::Triplet< T1, T2, T3 >::ThirdMemberType

Third member type.


Constructor & Destructor Documentation

template<class T1, class T2, class T3>
Saf::Collection::Triplet< T1, T2, T3 >::Triplet ( ) [inline]

Default constructor.

template<class T1, class T2, class T3>
Saf::Collection::Triplet< T1, T2, T3 >::Triplet ( const T1 &  v1) [inline, explicit]

Constructor.

The second and third member is constructed using its default constructor.

template<class T1, class T2, class T3>
Saf::Collection::Triplet< T1, T2, T3 >::Triplet ( const T1 &  v1,
const T2 &  v2 
) [inline]

Constructor.

The third member is constructed using its default constructor.

template<class T1, class T2, class T3>
Saf::Collection::Triplet< T1, T2, T3 >::Triplet ( const T1 &  v1,
const T2 &  v2,
const T3 &  v3 
) [inline]

Constructor.

template<class T1, class T2, class T3>
Saf::Collection::Triplet< T1, T2, T3 >::Triplet ( const Triplet< T1, T2, T3 > &  t) [inline]

Copy constructor.


Member Function Documentation

template<class T1, class T2, class T3>
Triplet<T1,T2,T3>& Saf::Collection::Triplet< T1, T2, T3 >::operator= ( const Triplet< T1, T2, T3 > &  t) [inline]

Assignment operator.

template<class T1, class T2, class T3>
void Saf::Collection::Triplet< T1, T2, T3 >::Swap ( Triplet< T1, T2, T3 > &  t) [inline]

Swap the content of two triplets.


Member Data Documentation

template<class T1, class T2, class T3>
T3 Saf::Collection::Triplet< T1, T2, T3 >::m_third

Third element.


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