Back to index

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

#include <ntuple.hpp>

Inheritance diagram for pair< T1, T2 >:
Inheritance graph
[legend]
Collaboration diagram for pair< T1, T2 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 pair (const pair &p)
 pair (const T1 &y1, const T2 &y2)
pairoperator= (const pair &p)
bool operator== (const pair &p)
bool operator!= (const pair &p)

Public Attributes

T1 x1
T2 x2

Detailed Description

template<class T1, class T2>
class pair< T1, T2 >

Definition at line 17 of file ntuple.hpp.


Constructor & Destructor Documentation

template<class T1, class T2>
pair< T1, T2 >::pair ( const pair< T1, T2 > &  p) [inline]

Definition at line 20 of file ntuple.hpp.

: x1 (p.x1), x2 (p.x2) {}
template<class T1, class T2>
pair< T1, T2 >::pair ( const T1 &  y1,
const T2 &  y2 
) [inline]

Definition at line 21 of file ntuple.hpp.

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

Member Function Documentation

template<class T1, class T2>
bool pair< T1, T2 >::operator!= ( const pair< T1, T2 > &  p) [inline]

Definition at line 24 of file ntuple.hpp.

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

Definition at line 22 of file ntuple.hpp.

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

Definition at line 23 of file ntuple.hpp.

{ return x1 == p.x1 && x2 == p.x2; }

Member Data Documentation

template<class T1, class T2>
T1 pair< T1, T2 >::x1

Definition at line 19 of file ntuple.hpp.

template<class T1, class T2>
T2 pair< T1, T2 >::x2

Definition at line 19 of file ntuple.hpp.


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