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>
88 template<
class I,
bool strict>
92 template<
class I,
bool strict>
97 template<
class I,
bool strict>
101 return i() && (
i.val() < 0);
103 return i() && (
i.val() <= 0);
107 template<
class I,
bool strict>
void operator++(void)
Move iterator to next value (if possible)
Gecode::IntArgs i(4, 1, 2, 3, 4)
Negative(void)
Default constructor.
int val(void) const
Return current value.
void init(I &i)
Initialize with values from i.
Value iterator for selecting only negative values.
Gecode toplevel namespace
bool operator()(void) const
Test whether iterator is still at a value or done.