Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

triple< _T1, _T2, _T3 > Struct Template Reference

triple holds three objects of arbitrary type. More...

#include <vdbl_triple.h>

Inheritance diagram for triple< _T1, _T2, _T3 >:

Inheritance graph
[legend]
Collaboration diagram for triple< _T1, _T2, _T3 >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _T1 first_type
 type of first entry

typedef _T2 second_type
typedef _T3 third_type
 third_type is the second bound type


Public Methods

 triple (const _T1 &__a, const _T2 &__b, const _T3 &__c)
template<class _U1, class _U2, class _U3>  triple (const triple< _U1, _U2, _U3 > &__t)

Public Attributes

_T1 first
 first entry

_T2 second
_T3 third
 third is a copy of the second object


Detailed Description

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

This class is used to hold three objects of arbitrary types. It is a slight generalization of std::pair.

Definition at line 41 of file vdbl_triple.h.


Member Typedef Documentation

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

first_type is the first bound type type of second entry

Definition at line 43 of file vdbl_triple.h.

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

second_type is the second bound type type of third entry

Definition at line 45 of file vdbl_triple.h.


Constructor & Destructor Documentation

template<class _T1, class _T2, class _T3>
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.

Definition at line 68 of file vdbl_triple.h.

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

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

Definition at line 75 of file vdbl_triple.h.


Member Data Documentation

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

first is a copy of the first object second entry

Definition at line 50 of file vdbl_triple.h.

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

second is a copy of the second object third entry

Definition at line 52 of file vdbl_triple.h.


The documentation for this struct was generated from the following file:
Generated on Tue Nov 4 01:29:43 2003 for Vienna Database Library by doxygen1.2.18