Lolly 1.4.27
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
pair< T1, T2 > Class Template Reference

#include <ntuple.hpp>

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

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 16 of file ntuple.hpp.

Constructor & Destructor Documentation

◆ pair() [1/2]

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

Definition at line 20 of file ntuple.hpp.

20: x1 (p.x1), x2 (p.x2) {}
T2 x2
Definition ntuple.hpp:19
T1 x1
Definition ntuple.hpp:18

◆ pair() [2/2]

template<class T1 , class T2 >
pair< T1, T2 >::pair ( const T1 & y1,
const T2 & y2 )
inline

Definition at line 21 of file ntuple.hpp.

21: x1 (y1), x2 (y2) {}
The list class represents a linked list.
Definition list.hpp:48

Member Function Documentation

◆ operator=()

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

Definition at line 22 of file ntuple.hpp.

22 {
23 x1= p.x1;
24 x2= p.x2;
25 return *this;
26 }

◆ operator==()

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

Definition at line 27 of file ntuple.hpp.

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

◆ operator!=()

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

Definition at line 28 of file ntuple.hpp.

28{ return x1 != p.x1 || x2 != p.x2; }

Member Data Documentation

◆ x1

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

Definition at line 18 of file ntuple.hpp.

◆ x2

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: