38 namespace Gecode {
namespace Int {
namespace Bool {
40 template<
class V0,
class V1,
class V2, PropCond pc>
45 x0.subscribe(home,*
this,pc);
46 x1.subscribe(home,*
this,pc);
47 x2.subscribe(home,*
this,pc);
50 template<
class V0,
class V1,
class V2, PropCond pc>
60 template<
class V0,
class V1,
class V2, PropCond pc>
63 return PropCost::ternary(PropCost::LO);
66 template<
class V0,
class V1,
class V2, PropCond pc>
70 x0.reschedule(home,*
this,pc);
71 x1.reschedule(home,*
this,pc);
72 x2.reschedule(home,*
this,pc);
75 template<
class V0,
class V1,
class V2, PropCond pc>
79 x0.cancel(home,*
this,pc);
80 x1.cancel(home,*
this,pc);
81 x2.cancel(home,*
this,pc);
82 (void) Propagator::dispose(home);
88 template<
class V0,
class V1,
class V2>
93 template<
class V0,
class V1,
class V2>
98 template<
class V0,
class V1,
class V2>
104 template<
class V0,
class V1,
class V2>
117 template<
class V0,
class V1,
class V2>
158 template<
class V0,
class V1,
class V2>
163 template<
class V0,
class V1,
class V2>
168 template<
class V0,
class V1,
class V2>
174 template<
class V0,
class V1,
class V2>
187 template<
class V0,
class V1,
class V2>
196 template<
class V0,
class V1,
class V2>
268 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.
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.
Base-class for propagators.
Propagation has computed fixpoint.
virtual Actor * copy(Space &home)
Copy propagator during cloning.
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.
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.
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.
IteBnd(Space &home, IteBnd &p)
Constructor for cloning p.
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.
union Gecode::@585::NNF::@62 u
Union depending on nodetype t.
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.
struct Gecode::@585::NNF::@62::@63 b
For binary nodes (and, or, eqv)
const Gecode::ModEvent ME_INT_DOM
Domain operation has changed the domain.
virtual Actor * copy(Space &home)
Copy propagator during cloning.
IteDom(Space &home, IteDom &p)
Constructor for cloning p.
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)
int ModEventDelta
Modification event deltas.
Home class for posting propagators
IteBase(Space &home, IteBase &p)
Constructor for cloning p.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
const Gecode::PropCond PC_BOOL_VAL
Propagate when a view becomes assigned (single value)
Boolean view for Boolean variables.