TF++, Miscellaneous classes and modules in C++:

◆ next()

template<class T = int>
Tvalue tfxx::RangeStepper< T >::next ( )
inline

advance to next value and return current value

Definition at line 132 of file range.h.

Referenced by tfxx::RangeListStepper< T >::next(), and tfxx::RangeStepper< Tvalue >::operator++().

133  {
134  if (this->valid()) { Mcurrent += Mstepsize; }
135  return(this->current());
136  }
Tvalue Mcurrent
Definition: range.h:142
Tvalue current() const
return current value
Definition: range.h:124
Tvalue Mstepsize
Definition: range.h:141
bool valid() const
true if stepper is still in range and can return a current value
Definition: range.h:128
Here is the caller graph for this function: