34namespace Gecode {
namespace Iter {
namespace Values {
42 template<
class I,
bool strict=false>
74 template<
class I,
bool strict>
78 template<
class I,
bool strict>
83 while (i() && (i.val() <= 0)) ++i;
85 while (i() && (i.val() < 0)) ++i;
89 template<
class I,
bool strict>
93 while (
i() && (
i.val() <= 0)) ++
i;
95 while (
i() && (
i.val() < 0)) ++
i;
99 template<
class I,
bool strict>
104 template<
class I,
bool strict>
110 template<
class I,
bool strict>
Value iterator for selecting only positive values.
bool operator()(void) const
Test whether iterator is still at a value or done.
void operator++(void)
Move iterator to next value (if possible)
void init(I &i)
Initialize with values from i.
Positive(void)
Default constructor.
int val(void) const
Return current value.
Gecode toplevel namespace