Gecode::IntSetRanges Class Reference
Range iterator for integer sets. More...
#include <gecode/int.hh>
Constructors and initialization | |
| IntSetRanges (void) | |
| Default constructor. | |
| IntSetRanges (const IntSet &s) | |
| Initialize with ranges for set s. | |
| void | init (const IntSet &s) |
| Initialize with ranges for set s. | |
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
Constructor & Destructor Documentation
◆ IntSetRanges() [1/2]
|
inline |
Default constructor.
Definition at line 240 of file int-set-1.hpp.
◆ IntSetRanges() [2/2]
|
inline |
Initialize with ranges for set s.
Definition at line 252 of file int-set-1.hpp.
Member Function Documentation
◆ init()
|
inline |
Initialize with ranges for set s.
Definition at line 243 of file int-set-1.hpp.
◆ operator()()
|
inline |
Test whether iterator is still at a range or done.
Definition at line 260 of file int-set-1.hpp.
◆ operator++()
|
inline |
Move iterator to next range (if possible).
Definition at line 256 of file int-set-1.hpp.
◆ min()
|
inline |
Return smallest value of range.
Definition at line 265 of file int-set-1.hpp.
◆ max()
|
inline |
Return largest value of range.
Definition at line 269 of file int-set-1.hpp.
◆ width()
|
inline |
Return width of range (distance between minimum and maximum).
Definition at line 273 of file int-set-1.hpp.
The documentation for this class was generated from the following files:
- gecode/int.hh
- gecode/int/int-set-1.hpp
