Gecode::Iter::Ranges::Minus< I > Class Template Reference
[Range iterators]
List of all members.Detailed Description
template<class I>
class Gecode::Iter::Ranges::Minus< I >
Range iterator for pointwise minus of a range iterator.
This iterator in effect changes the order of how ranges are iterated: the first range of the input iterator defines the last range of the Minus iterator. Upon initialization all ranges of the input iterator are stored in an array which later allows iteration in inverse direction.
Requires
#include "gecode/iter.hh"
Definition at line 40 of file ranges-minus.icc.
Constructors and initialization | |
Minus (void) | |
Default constructor. | |
Minus (I &i) | |
Initialize with ranges from i. | |
void | init (I &i) |
Initialize with ranges from i. | |
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
|
Default constructor.
Definition at line 86 of file ranges-minus.icc. |
|
Initialize with ranges from i.
Definition at line 104 of file ranges-minus.icc. |
Member Function Documentation
|
Initialize with ranges from i.
Definition at line 91 of file ranges-minus.icc. |
|
Test whether iterator is still at a range or done.
Definition at line 115 of file ranges-minus.icc. |
|
Move iterator to next range (if possible).
Definition at line 110 of file ranges-minus.icc. |
|
Return smallest value of range.
Definition at line 121 of file ranges-minus.icc. |
|
Return largest value of range.
Definition at line 126 of file ranges-minus.icc. |
|
Return width of range (distance between minimum and maximum).
Definition at line 131 of file ranges-minus.icc. |
The documentation for this class was generated from the following file:
- gecode/iter/ranges-minus.icc (Revision: 3515)