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

◆ next()

template<class T >
Tvalue tfxx::RangeListStepper< T >::next ( )
inline

step forward and return current value

Definition at line 111 of file rangelist.h.

References tfxx::RangeListStepper< T >::current(), tfxx::RangeListStepper< T >::Miterator, tfxx::RangeListStepper< T >::Mlist, tfxx::RangeStepper< T >::more(), tfxx::RangeListStepper< T >::Mrangestepper, tfxx::RangeListStepper< T >::Mstepsize, tfxx::RangeStepper< T >::next(), and tfxx::RangeListStepper< T >::valid().

Referenced by tfxx::RangeListStepper< T >::operator++().

112  {
113  if (this->valid())
114  {
115  if (Mrangestepper.more()) { Mrangestepper.next(); }
116  else {
117  ++Miterator;
118  if (Miterator != Mlist.end())
119  {
121  }
122  }
123  }
124  return(this->current());
125  }
Tvalue current() const
return current value in range list
Definition: rangelist.h:88
bool valid() const
true if stepper is still in range and can return a current value
Definition: rangelist.h:94
Tvalue next()
advance to next value and return current value
Definition: range.h:132
RangeStepper< Tvalue > Trangestepper
Definition: rangelist.h:80
Trangestepper Mrangestepper
Definition: rangelist.h:132
Tlist::const_iterator Miterator
Definition: rangelist.h:131
bool more() const
true if stepper will still be in range after next advance
Definition: range.h:130
Here is the call graph for this function:
Here is the caller graph for this function: