Go to the documentation of this file.
64 std::function<
void(
Space& home)>
c);
84 std::function<
void(
Space& home)> c0);
98 std::function<
void(
Space& home)>
c);
111 std::function<
void(
Space& home)> c0)
148 std::function<
void(
Space& home)>
c) {
164 c.~SharedData<std::function<void(
Space& home)>>();
166 return sizeof(*this);
177 std::function<
void(
Space& home)> c0)
193 for (
int i=
x.size()-1;
i>0;
i--)
196 assert(
x.size() > 0);
213 for (
int i=
x.size()-1;
i>0;
i--)
216 assert(
x.size() > 0);
233 std::function<
void(
Space& home)>
c) {
236 for (
int i=
x.size();
i--; )
258 c.~SharedData<std::function<void(
Space& home)>>();
260 return sizeof(*this);
Post propagator for SetVar x
SharedData< std::function< void(Space &home)> > c
Continuation to execute.
virtual Actor * copy(Space &home)
Perform copying during cloning.
ExecStatus ES_SUBSUMED(Propagator &p)
View x
View to wait for becoming assigned.
SharedData< std::function< void(Space &home)> > c
Continuation to execute.
Class for sharing data between spaces.
virtual Actor * copy(Space &home)
Perform copying during cloning.
virtual void reschedule(Space &home)
Schedule function.
bool assigned(View x, int v)
Whether x is assigned to value v.
const PropCond PC_GEN_ASSIGNED
Propagation condition for an assigned variable.
static ExecStatus post(Home home, ViewArray< View > &x, std::function< void(Space &home)> c)
Post propagator that waits until x becomes assigned and then executes c.
Base-class for both propagators and branchers.
virtual size_t dispose(Space &home)
Delete propagator and return its size.
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Const function (defined as low unary)
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
bool assigned(void) const
Test whether view is assigned.
Wait propagator for several views.
#define GECODE_VALID_FUNCTION(f)
Assert that a function is valid.
Gecode toplevel namespace
Base-class for propagators.
static ExecStatus post(Home home, View x, std::function< void(Space &home)> c)
Post propagator that waits until x becomes assigned and then executes c.
virtual size_t dispose(Space &home)
Delete propagator and return its size.
Home class for posting propagators
Actor must always be disposed.
static PropCost unary(PropCost::Mod m)
Single variable for modifier pcm.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
ModEventDelta med
A set of modification events (used during propagation)
UnaryWait(Home home, View x, std::function< void(Space &home)> c0)
Constructor for creation.
NaryWait(Home home, ViewArray< View > &x, std::function< void(Space &home)> c0)
Constructor for creation.
bool failed(void) const
Check whether space is failed.
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Const function (defined as high unary)
void cancel(Space &home, Propagator &p, IntSet &y)
Exception: invalid function
ViewArray< View > x
Views to wait for becoming assigned.
virtual void reschedule(Space &home)
Schedule function.
void ignore(Actor &a, ActorProperty p, bool duplicate=false)
Ignore actor property.
virtual size_t dispose(Space &home)
Delete actor and return its size.
Gecode::FloatVal c(-8, 8)
void notice(Actor &a, ActorProperty p, bool duplicate=false)
Notice actor property.
Execution has resulted in failure.
int ModEventDelta
Modification event deltas.
Wait propagator for single view.
Gecode::IntArgs i({1, 2, 3, 4})
int p
Number of positive literals for node type.