
Public Member Functions | |
| SparseInc (Home home, ViewArray< View > &x0, const TupleSet &ts0) | |
| SparseInc (Space &home, SparseInc< View, pos > &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. | |
Static Public Member Functions | |
| static ExecStatus | post (Home home, ViewArray< View > &x, const TupleSet &ts) |
| 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 Types | |
| typedef Extensional::SparseAdvisor< View > | SparseAdvisor |
| typedef SparseTupleState< SparseInc< View, pos >, View > | State |
Protected Member Functions | |
| void | enqueue_zero (unsigned int gid) |
| void | init_gid_maps (void) |
| void | init_support_counts (void) |
| void | deactivate_tuple (unsigned int tid) |
| bool | support_active (unsigned int gid) const |
| ExecStatus | process_zero_queue (Space &home) |
| bool | atmostone (void) 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) |
| const unsigned int * | tuple_gids (unsigned int tid) const |
| 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 Member Functions inherited from Gecode::Int::Extensional::SparseTupleState< SparseInc< View, pos >, View > | |
| SparseInc< View, pos > & | 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) | |
Protected Attributes | |
| ViewArray< View > | x |
| Council< SparseAdvisor > | c |
| unsigned int * | support_count |
| int * | gid_var |
| unsigned int * | zero_queue |
| unsigned int | zero_queue_size |
| unsigned char * | queued |
| bool | in_propagate |
| unsigned int | active_limit |
| int | arity |
| int * | gid_val |
| unsigned int | n_tuples |
| unsigned int | n_vals |
| TupleSet | ts |
| const unsigned int * | tv |
| Protected Attributes inherited from Gecode::Int::Extensional::SparseTupleState< SparseInc< View, pos >, View > | |
| TupleSet | ts |
| int | arity |
| unsigned int | n_tuples |
| unsigned int | n_vals |
| unsigned int * | active_ids |
| unsigned int * | pos_in_active |
| unsigned int | active_limit |
| int * | gid_val |
| const unsigned int * | tv |
Definition at line 319 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 323 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 324 of file extensional-tuple-set.cpp.
|
inline |
Definition at line 499 of file extensional-tuple-set.cpp.
|
inline |
Definition at line 521 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 349 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 357 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 379 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 400 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 416 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 422 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 490 of file extensional-tuple-set.cpp.
|
inlinestatic |
Definition at line 541 of file extensional-tuple-set.cpp.
|
inlinevirtual |
|
inlinevirtual |
Cost function.
Implements Gecode::Propagator.
Definition at line 602 of file extensional-tuple-set.cpp.
|
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 607 of file extensional-tuple-set.cpp.
|
inlinevirtual |
Delete actor and return its size.
Reimplemented from Gecode::Actor.
Definition at line 612 of file extensional-tuple-set.cpp.
|
inlinevirtual |
Propagation function.
The propagation function must return an execution status as follows:
Apart from the above values, a propagator can return the result from calling one of the functions defined by a space:
Implements Gecode::Propagator.
Definition at line 621 of file extensional-tuple-set.cpp.
|
inlinevirtual |
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:
Apart from the above values, an advisor can return the result from calling the function defined by a space:
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 697 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 250 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 212 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 225 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 184 of file extensional-tuple-set.cpp.
|
inlineprotected |
Definition at line 169 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 339 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 340 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 341 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 342 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 343 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 344 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 345 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 346 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 159 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 154 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 160 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 155 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 156 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 153 of file extensional-tuple-set.cpp.
|
protected |
Definition at line 161 of file extensional-tuple-set.cpp.