Gecode::Set::BndSetRanges Class Reference
Range iterator for integer sets. More...
#include <var-imp.hpp>
Constructors and initialization | |
|
| |
| BndSetRanges (void) | |
| Default constructor. | |
| BndSetRanges (const BndSet &s) | |
| Initialize with BndSet s. | |
| void | init (const BndSet &s) |
| Initialize with BndSet 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 252 of file var-imp.hpp.
Constructor & Destructor Documentation
| Gecode::Set::BndSetRanges::BndSetRanges | ( | void | ) | [inline] |
Default constructor.
Definition at line 316 of file integerset.hpp.
| Gecode::Set::BndSetRanges::BndSetRanges | ( | const BndSet & | s | ) | [inline] |
Initialize with BndSet s.
Definition at line 319 of file integerset.hpp.
Member Function Documentation
| void Gecode::Set::BndSetRanges::init | ( | const BndSet & | s | ) | [inline] |
Initialize with BndSet s.
Definition at line 322 of file integerset.hpp.
| bool Gecode::Set::BndSetRanges::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a range or done.
Definition at line 325 of file integerset.hpp.
| void Gecode::Set::BndSetRanges::operator++ | ( | void | ) | [inline] |
Move iterator to next range (if possible).
Definition at line 328 of file integerset.hpp.
| int Gecode::Set::BndSetRanges::min | ( | void | ) | const [inline] |
Return smallest value of range.
Definition at line 333 of file integerset.hpp.
| int Gecode::Set::BndSetRanges::max | ( | void | ) | const [inline] |
Return largest value of range.
Definition at line 337 of file integerset.hpp.
| unsigned int Gecode::Set::BndSetRanges::width | ( | void | ) | const [inline] |
Return width of range (distance between minimum and maximum).
Definition at line 341 of file integerset.hpp.
The documentation for this class was generated from the following files:
- gecode/set/var-imp.hpp (Revision: 11008)
- gecode/set/var-imp/integerset.hpp (Revision: 9692)
