Go to the documentation of this file.
36 namespace Gecode {
namespace Int {
namespace Member {
38 template<
class View, ReifyMode rm>
42 :
Prop<View>(home,vs,
x,
y),
b(b0) {
46 template<
class View, ReifyMode rm>
92 template<
class View, ReifyMode rm>
95 :
Prop<View>(home,
p) {
99 template<
class View, ReifyMode rm>
105 template<
class View, ReifyMode rm>
110 return sizeof(*this);
113 template<
class View, ReifyMode rm>
132 for (
int i=0;
i<
x.size();
i++)
141 switch (vs.compare(
y)) {
166 for (
int i=1;
i<
x.size();
i++) {
Post propagator for SetVar x
const Gecode::PropCond PC_BOOL_VAL
Propagate when a view becomes assigned (single value)
Post propagator for SetVar SetOpType SetVar y
@ RM_PMI
Inverse implication for reification.
ExecStatus ES_SUBSUMED(Propagator &p)
@ CS_NONE
Neither of the above.
Class for storing values of already assigned views.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to view.
@ RM_IMP
Implication for reification.
bool disjoint(I &i, J &j)
Check whether range iterators i and j are disjoint.
static ExecStatus post(Home home, View x0, View x1, CtrlView b)
Post domain consistent propagator .
void update(Space &home, VarImpView< Var > &y)
Update this view to be a clone of view y.
Binary disequality propagator.
const Gecode::ModEvent ME_INT_VAL
Domain operation has resulted in a value (assigned variable)
void eliminate(Term< BoolView > *t, int &n, long long int &d)
Eliminate assigned views.
Boolean view for Boolean variables.
Gecode toplevel namespace
Base-class for propagators.
union Gecode::@602::NNF::@65 u
Union depending on nodetype t.
@ CS_SUBSET
First is subset of second iterator.
Range iterator for integer views.
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
virtual size_t dispose(Space &home)
Delete propagator and return its size.
Home class for posting propagators
Post propagator for SetVar SetOpType SetVar SetRelType r
struct Gecode::@602::NNF::@65::@66 b
For binary nodes (and, or, eqv)
Range iterator for union of iterators.
ReProp(Home home, ValSet &vs, ViewArray< View > &x, View y, BoolView b)
Constructor for posting.
#define GECODE_NEVER
Assert that this command is never executed.
Iter::Ranges::CompareStatus compare(View x) const
Compare view x with value set.
BoolView b
Boolean control variable.
@ ES_FIX
Propagation has computed fixpoint.
virtual Propagator * copy(Space &home)
Copy propagator during cloning.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
int ModEventDelta
Modification event deltas.
static ExecStatus post(Home home, ViewArray< View > &x, View y, BoolView b)
Post propagator for .
Gecode::IntArgs i({1, 2, 3, 4})
#define GECODE_REWRITE(prop, post)
Rewrite propagator by executing post function.
@ ES_OK
Execution is okay.
int p
Number of positive literals for node type.
@ CS_DISJOINT
Intersection is empty.
Reified membership propagator.