Gecode::SetExprRanges Class Reference
Detailed Description
Range iterator for set expressions.Definition at line 127 of file set-expr.icc.
Constructors and destructor | |
SetExprRanges (const SetExprRanges &) | |
Copy constructor. | |
SetExprRanges (const ViewArray< Set::SetView > &x, SetExpr &s, bool monotone) | |
SetExprRanges (const ViewArray< Set::SetView > &x, const SetExprCode &s, bool monotone) | |
~SetExprRanges (void) | |
Destructor. | |
Iteration control | |
bool | operator() (void) |
Move iterator to next range (if possible). | |
void | operator++ (void) |
Test whether iterator is still at a range or done. | |
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). | |
Classes | |
class | Iter |
Reference-counted range iterators with virtual member functions. More... |
Constructor & Destructor Documentation
Gecode::SetExprRanges::SetExprRanges | ( | const SetExprRanges & | s | ) | [inline] |
Gecode::SetExprRanges::SetExprRanges | ( | const ViewArray< Set::SetView > & | x, | |
SetExpr & | s, | |||
bool | monotone | |||
) |
Initialize with the views x, a set expression s, and a flag whether s is to be interpreted in a monotone or anti-monotone way
Definition at line 308 of file set-expr.cc.
Gecode::SetExprRanges::SetExprRanges | ( | const ViewArray< Set::SetView > & | x, | |
const SetExprCode & | s, | |||
bool | monotone | |||
) |
Initialize with the views x, a set expression code c, and a flag whether c is to be interpreted in a monotone or anti-monotone way
Definition at line 314 of file set-expr.cc.
Gecode::SetExprRanges::~SetExprRanges | ( | void | ) | [inline] |
Member Function Documentation
bool Gecode::SetExprRanges::operator() | ( | void | ) | [inline] |
void Gecode::SetExprRanges::operator++ | ( | void | ) | [inline] |
int Gecode::SetExprRanges::min | ( | void | ) | const [inline] |
int Gecode::SetExprRanges::max | ( | void | ) | const [inline] |
unsigned int Gecode::SetExprRanges::width | ( | void | ) | const [inline] |
Return width of range (distance between minimum and maximum).
Definition at line 233 of file set-expr.icc.
The documentation for this class was generated from the following files:
- gecode/set/projectors/set-expr.icc (Revision: 6312)
- gecode/set/projectors/set-expr.cc (Revision: 6332)