bbq Implementation Documentation
Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

std::triple< _T1, _T2, _T3 > Struct Template Reference

Triple implementation for a triple class in C++. More...

#include <triple.h>

List of all members.

Public Types

typedef _T1 first_type
 first_type is the first bound type

typedef _T2 second_type
 second_type is the second bound type

typedef _T3 third_type
 third_type is the third bound type


Public Member Functions

 triple ()
 triple (const _T1 &__a, const _T2 &__b, const _T3 &__c)
 Three objects may be passed to a triple constructor to be copied.

template<class _U1, class _U2, class _U3>  triple (const triple< _U1, _U2, _U3 > &__p)
 There is also a templated copy ctor for the triple class itself.


Public Attributes

_T1 first
 first is a copy of the first object

_T2 second
 second is a copy of the second object

_T3 third
 third is a copy of the third object


Detailed Description

template<class _T1, class _T2, class _T3>
struct std::triple< _T1, _T2, _T3 >

Triple implementation for a triple class in C++.

Axel Mosig, University of Leipzig, Departement of Computer Science, Bioinformatics Group, 2004. This class has been obtained by straightforward modifications of the Pair implementation of the gcc c++ stl implementation, which is copyrighted (C) 2001 by the Free Software Foundation, Inc. For further documnentation of the pair implementation, see stl_pair.h in the stl implementation of pair. Although not part of the stl, the implementation is completely canonical, so that I impudently put it in the std namespace.

triple holds three objects of arbitrary type.


Member Typedef Documentation

template<class _T1, class _T2, class _T3>
typedef _T1 std::triple< _T1, _T2, _T3 >::first_type
 

first_type is the first bound type

template<class _T1, class _T2, class _T3>
typedef _T2 std::triple< _T1, _T2, _T3 >::second_type
 

second_type is the second bound type

template<class _T1, class _T2, class _T3>
typedef _T3 std::triple< _T1, _T2, _T3 >::third_type
 

third_type is the third bound type


Constructor & Destructor Documentation

template<class _T1, class _T2, class _T3>
std::triple< _T1, _T2, _T3 >::triple  )  [inline]
 

template<class _T1, class _T2, class _T3>
std::triple< _T1, _T2, _T3 >::triple const _T1 &  __a,
const _T2 &  __b,
const _T3 &  __c
[inline]
 

Three objects may be passed to a triple constructor to be copied.

template<class _T1, class _T2, class _T3>
template<class _U1, class _U2, class _U3>
std::triple< _T1, _T2, _T3 >::triple const triple< _U1, _U2, _U3 > &  __p  )  [inline]
 

There is also a templated copy ctor for the triple class itself.


Member Data Documentation

template<class _T1, class _T2, class _T3>
_T1 std::triple< _T1, _T2, _T3 >::first
 

first is a copy of the first object

template<class _T1, class _T2, class _T3>
_T2 std::triple< _T1, _T2, _T3 >::second
 

second is a copy of the second object

template<class _T1, class _T2, class _T3>
_T3 std::triple< _T1, _T2, _T3 >::third
 

third is a copy of the third object


The documentation for this struct was generated from the following file:
bbq Implementation Documentation
Axel Mosig, Bioinformatics, University of Leipzig