40 return new (home)
Pair(home,*
this);
80 : x(x0), xv(x0), yv(y0), w(w0) {}
97 return xv.val() + w*yv.val();
109 d.set(
static_cast<unsigned int>(i.val() /
w));
116 d(r,
static_cast<unsigned int>((
x2.max() /
w)+1)),
117 m(r,
static_cast<unsigned int>(
w));
119 d.set(
static_cast<unsigned int>(i.val() /
w));
120 m.
set(
static_cast<unsigned int>(i.val() %
w));
128 if (
x0.assigned() &&
x1.assigned()) {
131 }
else if (
x1.assigned()) {
162 d.set(
static_cast<unsigned int>(i.val() /
w));
169 d(r,
static_cast<unsigned int>((
x2.max() /
w)+1)),
170 m(r,
static_cast<unsigned int>(
w));
172 d.set(
static_cast<unsigned int>(i.val() /
w));
173 m.
set(
static_cast<unsigned int>(i.val() %
w));
181 if (
x0.assigned() &&
x1.assigned()) {
184 }
else if (
x1.assigned()) {
Base-class for both propagators and branchers.
Value iterator for pair of iterators.
PairValues(View x, View y, int w)
Initialize with views x and y and width w.
int val(void) const
Return current value.
void operator++(void)
Move iterator to next value (if possible).
bool operator()(void) const
Test whether iterator is still at a value or done.
virtual Actor * copy(Space &home)
Copy propagator during cloning.
static ExecStatus post(Home home, OffsetView x0, OffsetView x1, IntView x2, int w, int h)
Post propagator .
PairWithOffsets(Space &home, PairWithOffsets &p)
Constructor for cloning p.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Pair(Space &home, Pair &p)
Constructor for cloning p.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
static ExecStatus post(Home home, IntView x0, IntView x1, IntView x2, int w, int h)
Post propagator .
virtual Actor * copy(Space &home)
Copy propagator during cloning.
Base-class for element propagator for array of views.
Binary domain consistent equality propagator.
Value iterator for integer views.
Value iterator for values in a bitset.
unsigned int id(void) const
Return propagator id.
void set(unsigned int i)
Set bit i.
ExecStatus ES_SUBSUMED(Propagator &p)
Propagator p is subsumed
int ModEventDelta
Modification event deltas.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
#define GECODE_REWRITE(prop, post)
Rewrite propagator by executing post function.
Gecode toplevel namespace
@ ES_NOFIX
Propagation has not computed fixpoint.