ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
larcfm::Pair< L, R > Class Template Reference

#include <Pair.h>

Public Member Functions

 Pair ()
 
 Pair (const L &left, const R &right)
 
getLeft () const
 
getRight () const
 
getFirst () const
 
getSecond () const
 
template<typename L1 , typename R1 >
 Pair (const Pair< L1, R1 > &t)
 

Public Attributes

left
 
right
 

Detailed Description

template<typename L, typename R>
class larcfm::Pair< L, R >

A class representing a two member tuple

Parameters
<L>Type of leftmost element
<R>Type of rightmost element

Constructor & Destructor Documentation

◆ Pair() [1/3]

template<typename L , typename R >
larcfm::Pair< L, R >::Pair ( )
inline

Construct a Pair

◆ Pair() [2/3]

template<typename L , typename R >
larcfm::Pair< L, R >::Pair ( const L &  left,
const R &  right 
)
inline

Construct a Pair

◆ Pair() [3/3]

template<typename L , typename R >
template<typename L1 , typename R1 >
larcfm::Pair< L, R >::Pair ( const Pair< L1, R1 > &  t)
inline

Copy a Pair

Member Function Documentation

◆ getFirst()

template<typename L , typename R >
L larcfm::Pair< L, R >::getFirst ( ) const
inline

The first (or leftmost) element

Returns
leftmost element

◆ getLeft()

template<typename L , typename R >
L larcfm::Pair< L, R >::getLeft ( ) const
inline

The left-most element

◆ getRight()

template<typename L , typename R >
R larcfm::Pair< L, R >::getRight ( ) const
inline

The rightmost element

◆ getSecond()

template<typename L , typename R >
R larcfm::Pair< L, R >::getSecond ( ) const
inline

The first (or leftmost) element

Returns
rightmost element

Member Data Documentation

◆ left

template<typename L , typename R >
L larcfm::Pair< L, R >::left

The left-most element

◆ right

template<typename L , typename R >
R larcfm::Pair< L, R >::right

The rightmost element


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