45 namespace Gecode {
namespace Set {
namespace Int {
58 (void)
new (home)
Card(home,x0,x1);
71 return new (home)
Card(home,share,*
this);
85 }
while (x1.min() > x1min || x1.max() < x1max);
const Gecode::PropCond PC_SET_CARD
Propagate when the cardinality of a view changes.
ExecStatus ES_SUBSUMED(Propagator &p)
Propagation has computed fixpoint.
const int max
Largest allowed integer value.
Base-class for both propagators and branchers.
static ExecStatus post(Home home, View s, Gecode::Int::IntView x)
Post propagator for .
int p
Number of positive literals for node type.
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
Integer view for integer variables.
Card(Space &home, bool share, Card &p)
Constructor for cloning p.
virtual Actor * copy(Space &home, bool)
Copy propagator during cloning.
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Gecode toplevel namespace
int ModEventDelta
Modification event deltas.
Home class for posting propagators
Propagator for cardinality