Generated on Thu Sep 21 15:23:01 2006 for Gecode/J by doxygen 1.4.7

Range and value iterators
[Common functionality]


Detailed Description

Both range and value iterators have a rather simple interface for controlling iteration (which deviates from what you might be used to from other iterators).

The method notDone() tests whether an iterator has not yet reached its end (in this case, true is returned). The method next moves the iterator to the next element (either next value or next range).

Value iterators provide access to the value by the member function val(). Range iterators provide access to the smallest, largest, and width of the current range by min(), max(), and width() respectively.


Modules

 Range iterators
 A range iterator provides incremental access to a sequence of increasing ranges.