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) |
Range iterator for integer sets.
Definition at line 252 of file var-imp.hpp.
Gecode::Set::BndSetRanges::BndSetRanges | ( | void | ) | [inline] |
Default constructor.
Definition at line 315 of file integerset.hpp.
Gecode::Set::BndSetRanges::BndSetRanges | ( | const BndSet & | s | ) | [inline] |
Initialize with BndSet s.
Definition at line 318 of file integerset.hpp.
void Gecode::Set::BndSetRanges::init | ( | const BndSet & | s | ) | [inline] |
Initialize with BndSet s.
Definition at line 321 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 324 of file integerset.hpp.
void Gecode::Set::BndSetRanges::operator++ | ( | void | ) | [inline] |
Move iterator to next range (if possible)
Definition at line 327 of file integerset.hpp.
int Gecode::Set::BndSetRanges::min | ( | void | ) | const [inline] |
Return smallest value of range.
Definition at line 332 of file integerset.hpp.
int Gecode::Set::BndSetRanges::max | ( | void | ) | const [inline] |
Return largest value of range.
Definition at line 336 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 340 of file integerset.hpp.