Gecode::Int::IntVarImpFwd Class Reference
Inherited by
Gecode::Int::ViewRanges< IntView >,
Gecode::IntVarRanges, and
Gecode::Set::LubRanges< SingletonView >.
List of all members.
Detailed Description
Range iterator for ranges of integer variable implementation.
Definition at line 396 of file var-imp.icc.
|
Constructors and initialization |
| | IntVarImpFwd (void) |
| | Default constructor.
|
| | IntVarImpFwd (const IntVarImp *x) |
| | Initialize with ranges from variable implementation x.
|
| void | init (const IntVarImp *x) |
| | Initialize with ranges from 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).
|
Constructor & Destructor Documentation
| Gecode::Int::IntVarImpFwd::IntVarImpFwd |
( |
void |
|
) |
[inline] |
Default constructor.
Definition at line 420 of file int.icc.
| Gecode::Int::IntVarImpFwd::IntVarImpFwd |
( |
const IntVarImp * |
x |
) |
[inline] |
Initialize with ranges from variable implementation x.
Definition at line 422 of file int.icc.
Member Function Documentation
| void Gecode::Int::IntVarImpFwd::init |
( |
const IntVarImp * |
x |
) |
[inline] |
Initialize with ranges from variable implementation x.
Definition at line 425 of file int.icc.
| bool Gecode::Int::IntVarImpFwd::operator() |
( |
void |
|
) |
const [inline] |
Test whether iterator is still at a range or done.
Definition at line 430 of file int.icc.
| void Gecode::Int::IntVarImpFwd::operator++ |
( |
void |
|
) |
[inline] |
Move iterator to next range (if possible).
Definition at line 434 of file int.icc.
| int Gecode::Int::IntVarImpFwd::min |
( |
void |
|
) |
const [inline] |
Return smallest value of range.
Definition at line 439 of file int.icc.
| int Gecode::Int::IntVarImpFwd::max |
( |
void |
|
) |
const [inline] |
Return largest value of range.
Definition at line 443 of file int.icc.
| unsigned int Gecode::Int::IntVarImpFwd::width |
( |
void |
|
) |
const [inline] |
Return width of range (distance between minimum and maximum).
Definition at line 447 of file int.icc.
The documentation for this class was generated from the following files: