Gecode::Int::ValSet::Ranges Class Reference
Iterator over ranges. More...
#include <gecode/int/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). | |
Detailed Description
Iterator over ranges.
Definition at line 78 of file val-set.hh.
Constructor & Destructor Documentation
◆ Ranges()
|
inline |
Initialize.
Definition at line 131 of file val-set.hpp.
Member Function Documentation
◆ operator()()
|
inline |
Test whether iterator is still at a range or done.
Definition at line 135 of file val-set.hpp.
◆ operator++()
|
inline |
Move iterator to next range (if possible).
Definition at line 140 of file val-set.hpp.
◆ min()
|
inline |
Return smallest value of range.
Definition at line 145 of file val-set.hpp.
◆ max()
|
inline |
Return largest value of range.
Definition at line 149 of file val-set.hpp.
◆ width()
|
inline |
Return width of range (distance between minimum and maximum).
Definition at line 154 of file val-set.hpp.
The documentation for this class was generated from the following files:
- gecode/int/val-set.hh
- gecode/int/val-set.hpp
