
#include <gecode/flatzinc/lastval.hh>
Public Member Functions | |
| virtual Actor * | copy (Space &home) |
| Copy propagator during cloning. | |
| virtual void | reschedule (Space &home) |
| Schedule function. | |
| virtual PropCost | cost (const Space &, const ModEventDelta &) const |
| Cost function. | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &) |
| Perform propagation. | |
| ModEventDelta | modeventdelta (void) const |
| Return the modification event delta. | |
| virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
| Advise function. | |
| virtual void | advise (Space &home, Advisor &a) |
| Run advisor a to be run on failure in failed space. | |
| double | afc (void) const |
| Return the accumulated failure count. | |
| unsigned int | id (void) const |
| Return propagator id. | |
| PropagatorGroup | group (void) const |
| Return group propagator belongs to. | |
| void | group (PropagatorGroup g) |
| Add propagator to group g. | |
| bool | disabled (void) const |
| Whether propagator is currently disabled. | |
| virtual size_t | dispose (Space &home) |
| Delete actor and return its size. | |
| virtual | ~Actor (void) |
| To avoid warnings. | |
Static Public Member Functions | |
| static void | record_assigned (FlatZincSpace &home, IdxViewArray< View > &x) |
| Record (and forget) the values of any assigned views in x in the right position in last_val. | |
| static ExecStatus | post (FlatZincSpace &home, const typename ViewToVarArg< View >::argtype &x) |
| Post propagator. | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. | |
| static void * | operator new (size_t s) |
| Not used. | |
| static void | operator delete (void *p) |
| Not used. | |
Protected Member Functions | |
| LastVal (Space &home, LastVal &p) | |
| Constructor for cloning p. | |
| LastVal (FlatZincSpace &home, IdxViewArray< View > x0) | |
| Constructor for posting. | |
| Protected Member Functions inherited from Gecode::Propagator | |
| Propagator (Home home) | |
| Constructor for posting. | |
| Propagator (Space &home, Propagator &p) | |
| Constructor for cloning p. | |
| Propagator * | fwd (void) const |
| Return forwarding pointer during copying. | |
| Kernel::GPI::Info & | gpi (void) |
| Provide access to global propagator information. | |
Protected Attributes | |
| IdxViewArray< View > | x |
| Array of views and their indices. | |
Definition at line 67 of file lastval.hh.
|
inlineprotected |
Constructor for cloning p.
Definition at line 73 of file lastval.hh.
|
inlineprotected |
Constructor for posting.
Definition at line 77 of file lastval.hh.
|
inlinestatic |
Record (and forget) the values of any assigned views in x in the right position in last_val.
Definition at line 85 of file lastval.hh.
|
inlinevirtual |
|
inlinevirtual |
Schedule function.
The function is executed when a propagator is enabled again. Note that a propagator should be scheduled with the right modification event delta and should only be scheduled if it is legal to execute the propagator.
Implements Gecode::Propagator.
Definition at line 98 of file lastval.hh.
|
inlinevirtual |
|
inlinevirtual |
|
inlinestatic |
Post propagator.
Definition at line 114 of file lastval.hh.
|
protected |
Array of views and their indices.
Definition at line 70 of file lastval.hh.