55 for (
int i=x.
size(); i--;)
58 for (
int i=y.
size(); i--;)
76 for (
int i=x.
size(); i--;)
79 for (
int i=y.
size(); i--;)
int size(void) const
Return size of array (number of elements).
Passing Boolean variables.
Home class for posting propagators
Passing integer variables.
Propagator for channelling between set variable and its characteristic function
static ExecStatus post(Home home, ViewArray< Gecode::Int::CachedView< Gecode::Int::IntView > > &x, ViewArray< CachedView< View > > &y)
Post propagator for .
static ExecStatus post(Home home, ViewArray< CachedView< View > > &x, ViewArray< CachedView< View > > &y)
Post propagator for .
static ExecStatus post(Home home, View s, ViewArray< Gecode::Int::IntView > &x)
Post propagator that propagates that s contains the , which are sorted in non-descending order.
#define GECODE_POST
Check for failure in a constraint post function.
#define GECODE_ES_FAIL(es)
Check whether execution status es is failed, and fail space home.
Gecode toplevel namespace
void channel(Home home, FloatVar x0, IntVar x1)
Post propagator for channeling a float and an integer variable .
void channelSorted(Home home, const IntVarArgs &x, SetVar y)
Post propagator for and .
TFE post(PropagatorGroup g)
Only post functions (but not propagators) from g are considered.