GENIEGenerator
Loading...
Searching...
No Matches
genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal > Class Template Reference
Inheritance diagram for genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >:
[legend]

Public Member Functions

 Iterator (const C &f)
 Iterator ()
Iterator operator++ ()
operator* ()
Iterator begin ()
Iterator end ()
bool operator!= (const Iterator &i)

Private Types

typedef std::underlying_type< C >::type val_t

Private Attributes

int val

Detailed Description

template<typename C, C beginVal, C endVal>
class genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >

Definition at line 134 of file MKSPPPXSec2020.h.

Member Typedef Documentation

◆ val_t

template<typename C, C beginVal, C endVal>
typedef std::underlying_type<C>::type genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::val_t
private

Definition at line 135 of file MKSPPPXSec2020.h.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename C, C beginVal, C endVal>
genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::Iterator ( const C & f)
inline

Definition at line 138 of file MKSPPPXSec2020.h.

◆ Iterator() [2/2]

template<typename C, C beginVal, C endVal>
genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::Iterator ( )
inline

Member Function Documentation

◆ begin()

template<typename C, C beginVal, C endVal>
Iterator genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::begin ( )
inline

Definition at line 145 of file MKSPPPXSec2020.h.

145{ return *this; } //default ctor is good

◆ end()

template<typename C, C beginVal, C endVal>
Iterator genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::end ( )
inline

Definition at line 146 of file MKSPPPXSec2020.h.

146 {
147 static const Iterator endIter=++Iterator(endVal); // cache it
148 return endIter;
149 }

◆ operator!=()

template<typename C, C beginVal, C endVal>
bool genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::operator!= ( const Iterator< C, beginVal, endVal > & i)
inline

Definition at line 150 of file MKSPPPXSec2020.h.

150{ return val != i.val; }

◆ operator*()

template<typename C, C beginVal, C endVal>
C genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::operator* ( )
inline

Definition at line 144 of file MKSPPPXSec2020.h.

144{ return static_cast<C>(val); }

◆ operator++()

template<typename C, C beginVal, C endVal>
Iterator genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::operator++ ( )
inline

Definition at line 140 of file MKSPPPXSec2020.h.

140 {
141 ++val;
142 return *this;
143 }

Member Data Documentation

◆ val

template<typename C, C beginVal, C endVal>
int genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::val
private

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