Range iterator for the greatest lower bound of a set variable implementation. More...
#include <set.hpp>
Constructors and initialization | |
GlbRanges (void) | |
Default constructor. | |
GlbRanges (const SetVarImp *x) | |
Initialize with ranges for variable implementation x. | |
void | init (const SetVarImp *) |
Initialize with ranges for variable implementation 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) |
Additional Inherited Members | |
BndSetRanges (void) | |
Default constructor. | |
BndSetRanges (const BndSet &s) | |
Initialize with BndSet s. | |
void | init (const BndSet &s) |
Initialize with BndSet s. | |
RangeList (void) | |
Default constructor. | |
RangeList (const Gecode::RangeList *s) | |
Initialize with range list s. | |
void | init (const Gecode::RangeList *s) |
Initialize with range list s. | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. | |
void | operator++ (void) |
Move iterator to next range (if possible) | |
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) | |
Protected Attributes inherited from Gecode::Iter::Ranges::RangeList | |
const Gecode::RangeList * | c |
Current range. |
Range iterator for the greatest lower bound of a set variable implementation.
This class provides (by specialization) a range iterator for the greatest lower bounds of set variable implementations.
|
inline |
|
inline |
|
inline |
bool Gecode::Set::GlbRanges< SetVarImp * >::operator() | ( | void | ) | const |
Test whether iterator is still at a range or done.
void Gecode::Set::GlbRanges< SetVarImp * >::operator++ | ( | void | ) |
Move iterator to next range (if possible)
int Gecode::Set::GlbRanges< SetVarImp * >::min | ( | void | ) | const |
Return smallest value of range.
int Gecode::Set::GlbRanges< SetVarImp * >::max | ( | void | ) | const |
Return largest value of range.
unsigned int Gecode::Set::GlbRanges< SetVarImp * >::width | ( | void | ) | const |
Return width of range (distance between minimum and maximum)