GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal > Class Template Reference

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

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

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.

138 : val(static_cast<val_t>(f)) {}
template<typename C , C beginVal, C endVal>
genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::Iterator ( )
inline

Definition at line 139 of file MKSPPPXSec2020.h.

Referenced by genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::end().

139 : val(static_cast<val_t>(beginVal)) {}

Member Function Documentation

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
template<typename C , C beginVal, C endVal>
Iterator genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::end ( )
inline

Definition at line 146 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::Iterator().

146  {
147  static const Iterator endIter=++Iterator(endVal); // cache it
148  return endIter;
149  }
template<typename C , C beginVal, C endVal>
bool genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::operator!= ( const Iterator< C, beginVal, endVal > &  i)
inline
template<typename C , C beginVal, C endVal>
C genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::operator* ( )
inline

Definition at line 144 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::val.

144 { return static_cast<C>(val); }
template<typename C , C beginVal, C endVal>
Iterator genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::operator++ ( )
inline

Definition at line 140 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::Iterator< C, beginVal, endVal >::val.

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

Member Data Documentation

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: