Value iterator for selecting only positive values. More...
#include <values-positive.hpp>
Protected Attributes | |
I | i |
Input iterator. | |
Constructors and initialization | |
Positive (void) | |
Default constructor. | |
Positive (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. |
Value iterator for selecting only positive values.
If strict is true, zero is included.
Gecode::Iter::Values::Positive::Positive | ( | void | ) | [inline] |
Default constructor.
Definition at line 80 of file values-positive.hpp.
Gecode::Iter::Values::Positive::Positive | ( | I & | i | ) | [inline] |
Initialize with values from i.
Definition at line 95 of file values-positive.hpp.
void Gecode::Iter::Values::Positive::init | ( | I & | i | ) | [inline] |
Initialize with values from i.
Definition at line 84 of file values-positive.hpp.
bool Gecode::Iter::Values::Positive::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a value or done.
Definition at line 110 of file values-positive.hpp.
void Gecode::Iter::Values::Positive::operator++ | ( | void | ) | [inline] |
Move iterator to next value (if possible)
Definition at line 105 of file values-positive.hpp.
int Gecode::Iter::Values::Positive::val | ( | void | ) | const [inline] |
Return current value.
Definition at line 116 of file values-positive.hpp.
I Gecode::Iter::Values::Positive::i [protected] |
Input iterator.
Definition at line 50 of file values-positive.hpp.