|
| | SparseReifInc (Home home, ViewArray< View > &x0, const TupleSet &ts0, CtrlView b0) |
| | SparseReifInc (Space &home, SparseReifInc< View, CtrlView, rm > &p) |
| virtual Actor * | copy (Space &home) |
| | Create copy.
|
| virtual PropCost | cost (const Space &, const ModEventDelta &) const |
| | Cost function.
|
| virtual void | reschedule (Space &home) |
| | Schedule function.
|
| virtual size_t | dispose (Space &home) |
| | Delete actor and return its size.
|
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &) |
| | Propagation function.
|
| virtual ExecStatus | advise (Space &home, Advisor &a0, const Delta &d) |
| | Advise function.
|
| ModEventDelta | modeventdelta (void) const |
| | Return the modification event delta.
|
| 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 | ~Actor (void) |
| | To avoid warnings.
|
|
| void | deactivate_tuple (unsigned int tid) |
| bool | support_active (unsigned int) const |
| void | deactivate_for_all_domains (const ViewArray< View > &x) |
| void | deactivate_for_domain (int variable, const View &view) |
| void | deactivate_removed_values (int variable, const View &view, const Delta &delta) |
| bool | remove_tuple (unsigned int tid) |
| | 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.
|
| SparseReifInc< View, CtrlView, rm > & | derived (void) |
| const unsigned int * | tuple_gids (unsigned int tid) const |
| unsigned int | tuple_gid (unsigned int tid, int variable) const |
| bool | remove_tuple (unsigned int tid) |
| void | deactivate_value_support (int variable, int value) |
| void | deactivate_for_domain (int variable, const View &view) |
| void | deactivate_removed_values (int variable, const View &view, const Delta &delta) |
| void | deactivate_for_all_domains (const ViewArray< View > &x) |
| | SparseTupleState (Home home, ViewArray< View > &x, const TupleSet &ts0) |
| | SparseTupleState (Space &home, const SparseTupleState &state) |
template<class
View, class CtrlView,
ReifyMode rm>
class Gecode::Int::Extensional::SparseReifInc< View, CtrlView, rm >
Definition at line 726 of file extensional-tuple-set.cpp.
Advise function.
The advisor is passed as argument a.
A propagator must specialize this advise function, if it uses advisors. The advise function must return an execution status as follows:
- ES_FAILED: the advisor has detected failure.
- ES_FIX: the advisor's propagator (that is, this propagator) does not need to be run.
- ES_NOFIX: the advisor's propagator (that is, this propagator) must be run.
- ES_NOFIX_FORCE: the advisor's propagator (that is, this propagator) must be run and it must forcefully be rescheduled (including recomputation of cost).
Apart from the above values, an advisor can return the result from calling the function defined by a space:
- ES_FIX_DISPOSE: the advisor's propagator does not need to be run and the advisor will be disposed.
- ES_NOFIX_DISPOSE: the advisor's propagator must be run and the advisor will be disposed.
- ES_NOFIX_FORCE_DISPOSE: the advisor's propagator must be run , it must forcefully be rescheduled (including recomputation of cost), and the adviser will be disposed. For more details, see the function documentation.
The delta d describes how the variable has been changed by an operation on the advisor's variable. Typically, the delta information can only be utilized by either static or member functions of views as the actual delta information is both domain and view dependent.
Reimplemented from Gecode::Propagator.
Definition at line 862 of file extensional-tuple-set.cpp.