Gecode::Iter::Values::Negative< I, strict > Class Template Reference
[Value iterators]
Detailed Description
template<class I, bool strict = false>
class Gecode::Iter::Values::Negative< I, strict >
Value iterator for selecting only negative values.
If strict is true, zero is excluded.
Definition at line 47 of file values-negative.icc.
Constructors and initialization | |
Negative (void) | |
Default constructor. | |
Negative (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. | |
Protected Attributes | |
I | i |
Input iterator. |
Constructor & Destructor Documentation
template<class I, bool strict>
Gecode::Iter::Values::Negative< I, strict >::Negative | ( | void | ) | [inline] |
template<class I, bool strict>
Gecode::Iter::Values::Negative< I, strict >::Negative | ( | I & | i | ) | [inline] |
Member Function Documentation
template<class I, bool strict>
void Gecode::Iter::Values::Negative< I, strict >::init | ( | I & | i | ) | [inline] |
template<class I, bool strict>
bool Gecode::Iter::Values::Negative< I, strict >::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a value or done.
Definition at line 99 of file values-negative.icc.
template<class I, bool strict>
void Gecode::Iter::Values::Negative< I, strict >::operator++ | ( | void | ) | [inline] |
template<class I, bool strict>
int Gecode::Iter::Values::Negative< I, strict >::val | ( | void | ) | const [inline] |
Member Data Documentation
template<class I, bool strict = false>
I Gecode::Iter::Values::Negative< I, strict >::i [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/values-negative.icc (Revision: 7308)