Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
triple< T1, T2, T3 > Class Template Reference

#include <ntuple.hpp>

Collaboration diagram for triple< T1, T2, T3 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 triple (const triple &t)
 triple (const T1 &y1, const T2 &y2, const T3 &y3)
tripleoperator= (const triple &t)
bool operator== (const triple &t)
bool operator!= (const triple &t)

Public Attributes

T1 x1
T2 x2
T3 x3

Detailed Description

template<class T1, class T2, class T3>
class triple< T1, T2, T3 >

Definition at line 37 of file ntuple.hpp.


Constructor & Destructor Documentation

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

Definition at line 40 of file ntuple.hpp.

                                 :
    x1 (t.x1), x2 (t.x2), x3 (t.x3) {}
template<class T1, class T2, class T3>
triple< T1, T2, T3 >::triple ( const T1 &  y1,
const T2 &  y2,
const T3 &  y3 
) [inline]

Definition at line 42 of file ntuple.hpp.

                                                          :
    x1 (y1), x2 (y2), x3 (y3) {}

Member Function Documentation

template<class T1, class T2, class T3>
bool triple< T1, T2, T3 >::operator!= ( const triple< T1, T2, T3 > &  t) [inline]

Definition at line 48 of file ntuple.hpp.

                                            {
    return x1 != t.x1 || x2 != t.x2 || x3 != t.x3; }
template<class T1, class T2, class T3>
triple& triple< T1, T2, T3 >::operator= ( const triple< T1, T2, T3 > &  t) [inline]

Definition at line 44 of file ntuple.hpp.

                                              {
    x1= t.x1; x2= t.x2; x3= t.x3; return *this; }
template<class T1, class T2, class T3>
bool triple< T1, T2, T3 >::operator== ( const triple< T1, T2, T3 > &  t) [inline]

Definition at line 46 of file ntuple.hpp.

                                            {
    return x1 == t.x1 && x2 == t.x2 && x3 == t.x3; }

Member Data Documentation

template<class T1, class T2, class T3>
T1 triple< T1, T2, T3 >::x1

Definition at line 39 of file ntuple.hpp.

template<class T1, class T2, class T3>
T2 triple< T1, T2, T3 >::x2

Definition at line 39 of file ntuple.hpp.

template<class T1, class T2, class T3>
T3 triple< T1, T2, T3 >::x3

Definition at line 39 of file ntuple.hpp.


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