npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::Triple< First, Second, Third > Struct Template Reference

#include <Triple.hh>

Public Types

typedef First first_type
 
typedef Second second_type
 
typedef Third third_type
 

Public Member Functions

 Triple ()
 
 Triple (const First &f, const Second &s, const Third &t)
 
template<class F2 , class S2 , class T2 >
 Triple (const Triple< F2, S2, T2 > &r)
 
template<class F2 , class S2 , class T2 >
Tripleoperator= (const Triple< F2, S2, T2 > &r)
 
bool operator== (const Triple &r) const
 
bool operator!= (const Triple &r) const
 
bool operator< (const Triple &r) const
 
bool operator> (const Triple &r) const
 

Public Attributes

First first
 First element of the triple.
 
Second second
 Second element of the triple.
 
Third third
 Third element of the triple.
 

Detailed Description

template<class First, class Second, class Third>
struct npstat::Triple< First, Second, Third >

A simple analogue of std::pair with three components

Constructor & Destructor Documentation

◆ Triple() [1/3]

template<class First , class Second , class Third >
npstat::Triple< First, Second, Third >::Triple ( )
inline

Default constructor of the triple calls default constructors of each component type

◆ Triple() [2/3]

template<class First , class Second , class Third >
npstat::Triple< First, Second, Third >::Triple ( const First &  f,
const Second &  s,
const Third &  t 
)
inline

Construct a triple by combining three different objects

◆ Triple() [3/3]

template<class First , class Second , class Third >
template<class F2 , class S2 , class T2 >
npstat::Triple< First, Second, Third >::Triple ( const Triple< F2, S2, T2 > &  r)
inline

Converting copy constructor

Member Function Documentation

◆ operator!=()

template<class First , class Second , class Third >
bool npstat::Triple< First, Second, Third >::operator!= ( const Triple< First, Second, Third > &  r) const
inline

Logical negation of operator==

◆ operator<()

template<class First , class Second , class Third >
bool npstat::Triple< First, Second, Third >::operator< ( const Triple< First, Second, Third > &  r) const
inline

Ordering comparison. Initially, first elements are compared. If they are equal, second elements are compared, etc.

◆ operator=()

template<class First , class Second , class Third >
template<class F2 , class S2 , class T2 >
Triple& npstat::Triple< First, Second, Third >::operator= ( const Triple< F2, S2, T2 > &  r)
inline

Converting assignment operator

◆ operator==()

template<class First , class Second , class Third >
bool npstat::Triple< First, Second, Third >::operator== ( const Triple< First, Second, Third > &  r) const
inline

Comparison for equality


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