38 namespace Gecode {
namespace Iter {
namespace Values {
46 template<
class I,
bool strict=false>
78 template<
class I,
bool strict>
82 template<
class I,
bool strict>
87 while (
i() && (
i.val() <= 0)) ++
i;
89 while (
i() && (
i.val() < 0)) ++
i;
93 template<
class I,
bool strict>
97 while (
i() && (
i.val() <= 0)) ++
i;
99 while (
i() && (
i.val() < 0)) ++
i;
103 template<
class I,
bool strict>
108 template<
class I,
bool strict>
114 template<
class I,
bool strict>
Value iterator for selecting only positive values.
void init(I &i)
Initialize with values from i.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int val(void) const
Return current value.
Gecode toplevel namespace
Positive(void)
Default constructor.
bool operator()(void) const
Test whether iterator is still at a value or done.
void operator++(void)
Move iterator to next value (if possible)