36namespace 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++) {
struct Gecode::@603::NNF::@65::@66 b
For binary nodes (and, or, eqv)
union Gecode::@603::NNF::@65 u
Union depending on nodetype t.
int p
Number of positive literals for node type.
Home class for posting propagators
Boolean view for Boolean variables.
Reified membership propagator.
virtual Propagator * copy(Space &home)
Copy propagator during cloning.
ReProp(Home home, ValSet &vs, ViewArray< View > &x, View y, BoolView b)
Constructor for posting.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
BoolView b
Boolean control variable.
virtual size_t dispose(Space &home)
Delete propagator and return its size.
static ExecStatus post(Home home, ViewArray< View > &x, View y, BoolView b)
Post propagator for .
Binary disequality propagator.
static ExecStatus post(Home home, View x0, View x1, CtrlView b)
Post domain consistent propagator .
Class for storing values of already assigned views.
Iter::Ranges::CompareStatus compare(View x) const
Compare view x with value set.
Range iterator for integer views.
Range iterator for union of iterators.
Base-class for propagators.
void update(Space &home, VarImpView< Var > &y)
Update this view to be a clone of view y.
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to view.
ExecStatus ES_SUBSUMED(Propagator &p)
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.
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
@ RM_IMP
Implication for reification.
@ RM_PMI
Inverse implication for reification.
const Gecode::PropCond PC_BOOL_VAL
Propagate when a view becomes assigned (single value)
const Gecode::ModEvent ME_INT_VAL
Domain operation has resulted in a value (assigned variable)
@ CS_NONE
Neither of the above.
@ CS_SUBSET
First is subset of second iterator.
@ CS_DISJOINT
Intersection is empty.
bool disjoint(I &i, J &j)
Check whether range iterators i and j are disjoint.
Gecode toplevel namespace
Post propagator for SetVar SetOpType SetVar SetRelType r
Post propagator for SetVar SetOpType SetVar y
@ ES_OK
Execution is okay.
@ ES_FIX
Propagation has computed fixpoint.
Post propagator for SetVar x
#define GECODE_NEVER
Assert that this command is never executed.