Range iterator for minus integer views More...
#include <minus.hpp>
Constructors and initialization | |
ViewRanges (void) | |
Default constructor. | |
ViewRanges (const MinusView &x) | |
Initialize with ranges for view x. | |
void | init (const MinusView &x) |
Initialize with ranges for view x. | |
Range access | |
int | min (void) const |
Return smallest value of range. | |
int | max (void) const |
Return largest value of range. | |
Constructors and initialization | |
ViewRanges (void) | |
Default constructor. | |
ViewRanges (const MinusView &x) | |
Initialize with ranges for view x. | |
void | init (const MinusView &x) |
Initialize with ranges for view 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 | |
IntVarImpBwd (void) | |
Default constructor. | |
IntVarImpBwd (const IntVarImp *x) | |
Initialize with ranges from variable implementation x. | |
void | init (const IntVarImp *x) |
Initialize with ranges from variable implementation x. | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. | |
void | operator++ (void) |
Move iterator to previous 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) | |
|
inline |
|
inline |
Gecode::Int::ViewRanges< MinusView >::ViewRanges | ( | void | ) |
Default constructor.
Gecode::Int::ViewRanges< MinusView >::ViewRanges | ( | const MinusView & | x | ) |
Initialize with ranges for view x.
|
inline |
|
inline |
|
inline |
void Gecode::Int::ViewRanges< MinusView >::init | ( | const MinusView & | x | ) |
Initialize with ranges for view x.
bool Gecode::Int::ViewRanges< MinusView >::operator() | ( | void | ) | const |
Test whether iterator is still at a range or done.
void Gecode::Int::ViewRanges< MinusView >::operator++ | ( | void | ) |
Move iterator to next range (if possible)
int Gecode::Int::ViewRanges< MinusView >::min | ( | void | ) | const |
Return smallest value of range.
int Gecode::Int::ViewRanges< MinusView >::max | ( | void | ) | const |
Return largest value of range.
unsigned int Gecode::Int::ViewRanges< MinusView >::width | ( | void | ) | const |
Return width of range (distance between minimum and maximum)