Gecode::Iter::Values::Minus< I > Class Template Reference
[Value iterators]
Detailed Description
template<class I>
class Gecode::Iter::Values::Minus< I >
Value iterator for pointwise minus of a value iterator.
This iterator in effect changes the order of how values are iterated: the first values of the input iterator defines the last value of the Minus iterator. Upon initialization all values of the input iterator are stored in an array which later allows iteration in inverse direction.
Definition at line 53 of file values-minus.icc.
Constructors and initialization | |
Minus (void) | |
Default constructor. | |
Minus (I &i) | |
Initialize with values from i. | |
void | init (I &i) |
Initialize with values from i. | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a value or done. | |
void | operator++ (void) |
Move iterator to next value (if possible). | |
Value access | |
int | val (void) const |
Return current value. |
Constructor & Destructor Documentation
template<class I>
Gecode::Iter::Values::Minus< I >::Minus | ( | void | ) | [inline] |
template<class I>
Gecode::Iter::Values::Minus< I >::Minus | ( | I & | i | ) | [inline] |
Member Function Documentation
template<class I>
void Gecode::Iter::Values::Minus< I >::init | ( | I & | i | ) | [inline] |
template<class I>
bool Gecode::Iter::Values::Minus< I >::operator() | ( | void | ) | const [inline] |
template<class I>
void Gecode::Iter::Values::Minus< I >::operator++ | ( | void | ) | [inline] |
template<class I>
int Gecode::Iter::Values::Minus< I >::val | ( | void | ) | const [inline] |
The documentation for this class was generated from the following file:
- gecode/iter/values-minus.icc (Revision: 7308)