TF++, Miscellaneous classes and modules in C++:
tfxx::RangeStepper< T > Class Template Reference

#include <range.h>

Inheritance diagram for tfxx::RangeStepper< T >:

Public Types

typedef Range< T > Trange
 
typedef Trange::Tvalue Tvalue
 

Public Member Functions

 RangeStepper (const Trange &range, const Tvalue &stepsize=1)
 
 operator Tvalue () const
 return current value More...
 
Tvalue current () const
 return current value More...
 
bool valid () const
 true if stepper is still in range and can return a current value More...
 
bool more () const
 true if stepper will still be in range after next advance More...
 
Tvalue next ()
 advance to next value and return current value More...
 
Tvalue operator++ ()
 advance to next value and return current value More...
 

Private Attributes

Trange Mrange
 
Tvalue Mstepsize
 
Tvalue Mcurrent
 

Detailed Description

template<class T = int>
class tfxx::RangeStepper< T >

a class to step through a range

This class is only meaningful for ranges of integer value

Definition at line 114 of file range.h.


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