Value iterator for the intersection of two value iterators. More...
#include <values-inter.hpp>
Protected Member Functions | |
void | next (void) |
Find next element from intersection. | |
Protected Attributes | |
I | i |
First iterator. | |
J | j |
Second iterator. | |
Constructors and initialization | |
Inter (void) | |
Default constructor. | |
Inter (I &i, J &j) | |
Initialize with values from i and j. | |
void | init (I &i, J &j) |
Initialize with values from i and j. | |
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. |
Value iterator for the intersection of two value iterators.
Gecode::Iter::Values::Inter::Inter | ( | void | ) | [inline] |
Default constructor.
Definition at line 84 of file values-inter.hpp.
Gecode::Iter::Values::Inter::Inter | ( | I & | i, |
J & | j | ||
) | [inline] |
Initialize with values from i and j.
Definition at line 105 of file values-inter.hpp.
void Gecode::Iter::Values::Inter::next | ( | void | ) | [inline, protected] |
Find next element from intersection.
Definition at line 88 of file values-inter.hpp.
void Gecode::Iter::Values::Inter::init | ( | I & | i, |
J & | j | ||
) | [inline] |
Initialize with values from i and j.
Definition at line 99 of file values-inter.hpp.
bool Gecode::Iter::Values::Inter::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a value or done.
Definition at line 117 of file values-inter.hpp.
void Gecode::Iter::Values::Inter::operator++ | ( | void | ) | [inline] |
Move iterator to next value (if possible)
Definition at line 111 of file values-inter.hpp.
int Gecode::Iter::Values::Inter::val | ( | void | ) | const [inline] |
Return current value.
Definition at line 123 of file values-inter.hpp.
I Gecode::Iter::Values::Inter::i [protected] |
First iterator.
Definition at line 50 of file values-inter.hpp.
J Gecode::Iter::Values::Inter::j [protected] |
Second iterator.
Definition at line 52 of file values-inter.hpp.