Iterator for the greatest lower bound ranges of a set variable. More...
#include <set.hh>
Constructors and initialization | |
SetVarGlbRanges (void) | |
Default constructor. | |
SetVarGlbRanges (const SetVar &x) | |
Initialize to iterate ranges of variable x. | |
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) |
Iterator for the greatest lower bound ranges of a set variable.
Gecode::SetVarGlbRanges::SetVarGlbRanges | ( | void | ) | [inline] |
Gecode::SetVarGlbRanges::SetVarGlbRanges | ( | const SetVar & | x | ) | [inline] |
bool Gecode::SetVarGlbRanges::operator() | ( | void | ) | const [inline] |
void Gecode::SetVarGlbRanges::operator++ | ( | void | ) | [inline] |
int Gecode::SetVarGlbRanges::min | ( | void | ) | const [inline] |
int Gecode::SetVarGlbRanges::max | ( | void | ) | const [inline] |
unsigned int Gecode::SetVarGlbRanges::width | ( | void | ) | const [inline] |