divides.hpp
Go to the documentation of this file.
void notice(Actor &a, ActorProperty p, bool duplicate=false)
Notice actor property.
Definition core.hpp:3373
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Definition divides.hpp:153
static ExecStatus post(Home home, IntView x0, IntView x1, BoolView b)
Post propagator.
Definition divides.hpp:114
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function.
Definition divides.hpp:147
ReDivides(Home home, IntView x0, IntView x1, BoolView b)
Constructor for posting.
Definition divides.hpp:107
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
Definition int.hpp:121
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
Definition int.hpp:139
ReBinaryPropagator(Space &home, ReBinaryPropagator &p)
virtual size_t dispose(Space &home)
Delete propagator and return its size.
Definition propagator.hpp:257
IntView x0
Definition propagator.hpp:90
BoolView b
Definition propagator.hpp:92
IntView x1
Definition propagator.hpp:90
void ignore(Actor &a, ActorProperty p, bool duplicate=false)
Ignore actor property.
Definition core.hpp:4321
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
Definition macros.hpp:52
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
Definition macros.hpp:91
Numerical (arithmetic) propagators.
ExecStatus divides_bnd(Space &home, IntView divisor, IntView dividend)
Enforce divisibility with bounds reasoning only.
Definition divides.hpp:45
bool divides_value(int divisor, int dividend)
Definition divides.hpp:39
RelTest divides_status(const IntView &x0, const IntView &x1)
Definition divides.hpp:75
ExecStatus multiple_bounds(Home home, IntView x, int d)
Tighten a view to the extreme multiples of a positive divisor.
Definition gcd.hpp:73
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
Definition var-type.hpp:99
Gecode toplevel namespace
