|
TF++, Miscellaneous classes and modules in C++:
|
#include <range.h>

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 |
a class to step through a range
This class is only meaningful for ranges of integer value