38 namespace Gecode {
namespace Iter {
namespace Ranges {
82 unsigned int width(
void)
const;
87 unsigned int size(
void)
const;
bool operator()(void)
Test whether iterator is still at a range or done.
void operator++(void)
Move iterator to next range (if possible)
int max(void) const
Return largest value of range.
int min(void) const
Return smallest value of range.
unsigned int size(void) const
Return accumulated size.
Gecode::IntArgs i(4, 1, 2, 3, 4)
unsigned int _size
Accumulated size.
void init(I &i)
Initialize with ranges from i.
unsigned int width(void) const
Return width of range (distance between minimum and maximum)
Range iterator with size counting
Gecode toplevel namespace
Size(void)
Default constructor.
I i
Iterator to compute size of.