Gecode::IntSetRanges Class Reference
[Integer variables, Set variables]
Range iterator for integer sets.
More...
#include <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
Range iterator for integer sets.Definition at line 231 of file int.hh.
Constructor & Destructor Documentation
| Gecode::IntSetRanges::IntSetRanges | ( | void | ) | [inline] |
| Gecode::IntSetRanges::IntSetRanges | ( | const IntSet & | s | ) | [inline] |
Member Function Documentation
| void Gecode::IntSetRanges::init | ( | const IntSet & | s | ) | [inline] |
| bool Gecode::IntSetRanges::operator() | ( | void | ) | const [inline] |
| void Gecode::IntSetRanges::operator++ | ( | void | ) | [inline] |
| int Gecode::IntSetRanges::min | ( | void | ) | const [inline] |
| int Gecode::IntSetRanges::max | ( | void | ) | const [inline] |
| unsigned int Gecode::IntSetRanges::width | ( | void | ) | const [inline] |
Return width of range (distance between minimum and maximum).
Definition at line 185 of file int-set-1.hpp.
The documentation for this class was generated from the following files:
- gecode/int.hh (Revision: 9095)
- gecode/int/int-set-1.hpp (Revision: 8364)
