Value iterator for pointwise minus of a value iterator. More...
#include <values-minus.hpp>
Constructors and initialization | |
Minus (void) | |
Default constructor. More... | |
Minus (const Minus &m) | |
Copy constructor. More... | |
template<class I > | |
Minus (Region &r, I &i) | |
Initialize with values from i. More... | |
template<class I > | |
void | init (Region &r, I &i) |
Initialize with values from i. More... | |
Minus & | operator= (const Minus &m) |
Assignment operator (both iterators must be allocated from the same region) More... | |
Additional Inherited Members | |
![]() | |
~ValueListIter (void) | |
Destructor. More... | |
ValueListIter (void) | |
Default constructor. More... | |
ValueListIter (const ValueListIter &i) | |
Copy constructor. More... | |
ValueListIter (Region &r) | |
Initialize. More... | |
void | init (Region &r) |
Initialize. More... | |
ValueListIter & | operator= (const ValueListIter &i) |
Assignment operator (both iterators must be allocated from the same region) More... | |
bool | operator() (void) const |
Test whether iterator is still at a value or done. More... | |
void | operator++ (void) |
Move iterator to next value (if possible) More... | |
void | reset (void) |
Reset iterator to start. More... | |
int | val (void) const |
Return value. More... | |
![]() | |
void | set (ValueList *l) |
Set value lists. More... | |
![]() | |
VLIO * | vlio |
Reference to shared object. More... | |
ValueList * | h |
Head of value list. More... | |
ValueList * | c |
Current list element. More... | |
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 51 of file values-minus.hpp.
|
inline |
Default constructor.
Definition at line 72 of file values-minus.hpp.
|
inline |
Copy constructor.
Definition at line 75 of file values-minus.hpp.
|
inline |
Initialize with values from i.
Definition at line 94 of file values-minus.hpp.
void Gecode::Iter::Values::Minus::init | ( | Region & | r, |
I & | i | ||
) |
Initialize with values from i.
Definition at line 80 of file values-minus.hpp.
Assignment operator (both iterators must be allocated from the same region)
Definition at line 99 of file values-minus.hpp.