Iterator over ranges. More...
#include <val-set.hh>
Constructors and initialization | |
Ranges (const ValSet &vs) | |
Initialize. |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. | |
void | operator++ (void) |
Move iterator to next range (if possible) |
Range access | |
int | min (void) const |
Return smallest value of range. | |
int | max (void) const |
Return largest value of range. | |
unsigned int | width (void) const |
Return width of range (distance between minimum and maximum) |
Iterator over ranges.
Definition at line 78 of file val-set.hh.
|
inline |
Initialize.
Definition at line 132 of file val-set.hpp.
|
inline |
Test whether iterator is still at a range or done.
Definition at line 136 of file val-set.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 141 of file val-set.hpp.
|
inline |
Return smallest value of range.
Definition at line 146 of file val-set.hpp.
|
inline |
Return largest value of range.
Definition at line 150 of file val-set.hpp.
|
inline |
Return width of range (distance between minimum and maximum)
Definition at line 155 of file val-set.hpp.