42 namespace Gecode {
namespace Int {
namespace Bool {
44 template<
class V0,
class V1,
class V2, PropCond pc>
49 x0.subscribe(home,*
this,pc);
50 x1.subscribe(home,*
this,pc);
51 x2.subscribe(home,*
this,pc);
54 template<
class V0,
class V1,
class V2, PropCond pc>
59 b.update(home,share,p.
b);
60 x0.update(home,share,p.
x0);
61 x1.update(home,share,p.
x1);
62 x2.update(home,share,p.
x2);
65 template<
class V0,
class V1,
class V2, PropCond pc>
68 return PropCost::ternary(PropCost::LO);
71 template<
class V0,
class V1,
class V2, PropCond pc>
75 x0.reschedule(home,*
this,pc);
76 x1.reschedule(home,*
this,pc);
77 x2.reschedule(home,*
this,pc);
80 template<
class V0,
class V1,
class V2, PropCond pc>
84 x0.cancel(home,*
this,pc);
85 x1.cancel(home,*
this,pc);
86 x2.cancel(home,*
this,pc);
87 (void) Propagator::dispose(home);
93 template<
class V0,
class V1,
class V2>
98 template<
class V0,
class V1,
class V2>
103 template<
class V0,
class V1,
class V2>
109 template<
class V0,
class V1,
class V2>
122 template<
class V0,
class V1,
class V2>
163 template<
class V0,
class V1,
class V2>
168 template<
class V0,
class V1,
class V2>
173 template<
class V0,
class V1,
class V2>
179 template<
class V0,
class V1,
class V2>
192 template<
class V0,
class V1,
class V2>
201 template<
class V0,
class V1,
class V2>
273 if (!shared<V0,V2>(
x0,
x2) && !shared<V1,V2>(
x1,
x2))
#define GECODE_REWRITE(prop, post)
Rewrite propagator by executing post function.
If-then-else bounds-consistent propagator.
IteBnd(Space &home, bool share, IteBnd &p)
Constructor for cloning p.
IteDom(Space &home, bool share, IteDom &p)
Constructor for cloning p.
bool zero(void) const
Test whether view is assigned to be zero.
Binary domain consistent equality propagator.
ExecStatus ES_SUBSUMED(Propagator &p)
const FloatNum max
Largest allowed float value.
RelTest rtest_eq_dom(VX x, VY y)
Test whether views x and y are equal (use full domain information)
bool one(void) const
Test whether view is assigned to be one.
virtual Actor * copy(Space &home, bool share)
Copy propagator during cloning.
Base-class for propagators.
Propagation has computed fixpoint.
static ExecStatus post(Home home, BoolView b, V0 x0, V1 x1, V2 x2)
Post if-then-else propagator.
Base-class for both propagators and branchers.
Range iterator for integer views.
IteBase(Space &home, bool share, IteBase &p)
Constructor for cloning p.
int p
Number of positive literals for node type.
If-then-else propagator base-class.
const FloatNum min
Smallest allowed float value.
union Gecode::@554::NNF::@60 u
Union depending on nodetype t.
Execution has resulted in failure.
ModEvent zero_none(Space &home)
Assign not yet assigned view to zero.
RelTest
Result of testing relation.
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
ModEventDelta med
A set of modification events (used during propagation)
Binary bounds consistent equality propagator.
const Gecode::PropCond PC_INT_DOM
Propagate when domain changes.
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function (defined as high ternary)
static ExecStatus post(Home home, BoolView b, V0 x0, V1 x1, V2 x2)
Post if-then-else propagator.
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.
ExecStatus ES_FIX_PARTIAL(Propagator &p, const ModEventDelta &med)
Propagator p has computed partial fixpoint
RelTest rtest_eq_bnd(VX x, VY y)
Test whether views x and y are equal (use bounds information)
Range iterator for computing union (binary)
BoolView b
View for condition.
If-then-else domain-consistent propagator.
const Gecode::ModEvent ME_INT_DOM
Domain operation has changed the domain.
static PropCost ternary(PropCost::Mod m)
Three variables for modifier pcm.
Gecode toplevel namespace
ModEvent one_none(Space &home)
Assign not yet assigned view to one.
void reschedule(Space &home, Propagator &p, IntSet &y)
struct Gecode::@554::NNF::@60::@61 b
For binary nodes (and, or, eqv)
int ModEventDelta
Modification event deltas.
Home class for posting propagators
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
virtual Actor * copy(Space &home, bool share)
Copy propagator during cloning.
const Gecode::PropCond PC_BOOL_VAL
Propagate when a view becomes assigned (single value)
Boolean view for Boolean variables.