38 namespace Gecode {
namespace Iter {
namespace Ranges {
81 unsigned int width(
void)
const;
112 return static_cast<unsigned int>(
ma-
mi)+1;
int max(void) const
Return largest value of range.
Base for range iterators with explicit min and max.
bool operator()(void) const
Test whether iterator is still at a range or done.
void finish(void)
Set range such that iteration stops
MinMax(void)
Default constructor.
int mi
Minimum of current range.
Gecode toplevel namespace
int min(void) const
Return smallest value of range.
unsigned int width(void) const
Return width of range (distance between minimum and maximum)
int ma
Maximum of current range.