Gecode::IntSetRanges Class Reference
[Integer variables]
#include <int.hh>
Detailed Description
Range iterator for integer sets.
Definition at line 182 of file 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). | |
Constructor & Destructor Documentation
|
|
Default constructor.
Definition at line 98 of file int-set.icc. |
|
|
Initialize with ranges for set s.
Definition at line 100 of file int-set.icc. |
Member Function Documentation
|
|
Initialize with ranges for set s.
Definition at line 103 of file int-set.icc. |
|
|
Test whether iterator is still at a range or done.
Definition at line 112 of file int-set.icc. |
|
|
Move iterator to next range (if possible).
Definition at line 108 of file int-set.icc. |
|
|
Return smallest value of range.
Definition at line 117 of file int-set.icc. |
|
|
Return largest value of range.
Definition at line 121 of file int-set.icc. |
|
|
Return width of range (distance between minimum and maximum).
Definition at line 125 of file int-set.icc. |
The documentation for this class was generated from the following files:
- gecode/int.hh (Revision: 3579)
- gecode/int/int-set.icc (Revision: 3512)
