42 namespace Gecode {
namespace Int {
namespace Bool {
44 template<
class View, PropCond pc>
49 x0.subscribe(home,*
this,pc);
50 x1.subscribe(home,*
this,pc);
51 x2.subscribe(home,*
this,pc);
54 template<
class View, PropCond pc>
58 b.update(home,share,
p.b);
59 x0.update(home,share,
p.x0);
60 x1.update(home,share,
p.x1);
61 x2.update(home,share,
p.x2);
64 template<
class View, PropCond pc>
67 return PropCost::ternary(PropCost::LO);
70 template<
class View, PropCond pc>
74 x0.cancel(home,*
this,pc);
75 x1.cancel(home,*
this,pc);
76 x2.cancel(home,*
this,pc);
77 (void) Propagator::dispose(home);
102 if (
same(x0,x1) ||
b.one())
172 if (
same(x0,x1) ||
b.one())
#define GECODE_REWRITE(prop, post)
Rewrite propagator by executing post function.
If-then-else bounds-consistent propagator.
Binary domain consistent equality propagator.
ExecStatus ES_SUBSUMED(Propagator &p)
IteDom(Space &home, bool share, IteDom &p)
Constructor for cloning p.
const FloatNum max
Largest allowed float value.
virtual Actor * copy(Space &home, bool share)
Copy propagator during cloning.
struct Gecode::@511::NNF::@54::@55 b
For binary nodes (and, or, eqv)
Base-class for propagators.
IteBase(Space &home, bool share, IteBase &p)
Constructor for cloning p.
Propagation has computed fixpoint.
Base-class for both propagators and branchers.
Range iterator for integer views.
virtual Actor * copy(Space &home, bool share)
Copy propagator during cloning.
bool same(const CachedView< View > &x, const CachedView< View > &y)
int p
Number of positive literals for node type.
If-then-else propagator base-class.
const FloatNum min
Smallest allowed float value.
Execution has resulted in failure.
RelTest
Result of testing relation.
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
Binary bounds consistent equality propagator.
const Gecode::PropCond PC_INT_DOM
Propagate when domain changes.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
RelTest rtest_eq_dom(View x, View y)
Test whether views x and y are equal (use full domain information)
ExecStatus ES_FIX_PARTIAL(Propagator &p, const ModEventDelta &med)
Propagator p has computed partial fixpoint
Range iterator for computing union (binary)
If-then-else domain-consistent propagator.
IteBnd(Space &home, bool share, IteBnd &p)
Constructor for cloning p.
static ExecStatus post(Home home, BoolView b, View x0, View x1, View x2)
Post if-then-else propagator.
union Gecode::@511::NNF::@54 u
Union depending on nodetype t.
const Gecode::ModEvent ME_INT_DOM
Domain operation has changed the domain.
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function (defined as high ternary)
static ExecStatus post(Home home, BoolView b, View x0, View x1, View x2)
Post if-then-else propagator.
RelTest rtest_eq_bnd(View x, View y)
Test whether views x and y are equal (use bounds information)
static PropCost ternary(PropCost::Mod m)
Three variables for modifier pcm.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Gecode toplevel namespace
int ModEventDelta
Modification event deltas.
Home class for posting propagators
const Gecode::PropCond PC_BOOL_VAL
Propagate when a view becomes assigned (single value)
Boolean view for Boolean variables.