
#include <gecode/int/extensional/compact.hpp>
Public Types | |
| typedef View | ViewType |
| typedef CompactCompressed< View, true > | Base |
| typedef Base::ValidSupports | ValidSupports |
| typedef Base::CTAdvisor | CTAdvisor |
| typedef Base::LostSupports | LostSupports |
| typedef CompactStatus< CTAdvisor > | Status |
| typedef Status::StatusType | StatusType |
Public Member Functions | |
| template<class TableProp> | |
| PosCompactCompressed (Space &home, TableProp &p) | |
| PosCompactCompressed (Home home, ViewArray< View > &x, const TupleSet &ts) | |
| virtual Actor * | copy (Space &home) |
| Create copy. | |
| virtual size_t | dispose (Space &home) |
| Delete actor and return its size. | |
| virtual void | reschedule (Space &home) |
| Schedule function. | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &) |
| Propagation function. | |
| virtual ExecStatus | advise (Space &home, Advisor &advisor, const Delta &delta) |
| Advise function. | |
| void | setup (Space &home, Table &table, ViewArray< View > &x) |
| CompressedSupport | supports (CTAdvisor &a, int n) const |
| bool | all (void) const |
| bool | atmostone (void) const |
| Public Member Functions inherited from Gecode::Int::Extensional::CompactCompressed< View, true > | |
| virtual PropCost | cost (const Space &, const ModEventDelta &) const |
| Cost 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. | |
Public Attributes | |
| Status | status |
| Table | table |
| Council< CTAdvisor > | c |
| TupleSet | ts |
Additional Inherited Members | |
| Protected Types inherited from Gecode::Int::Extensional::CompactCompressed< View, true > | |
| typedef TupleSet::Range | Range |
| typedef TupleSet::CSupportWord | CSupportWord |
| typedef CompactAdvisor< View, pos, true > | CTAdvisor |
| Protected Member Functions inherited from Gecode::Int::Extensional::CompactCompressed< View, true > | |
| bool | all (void) const |
| bool | atmostone (void) const |
| CompactCompressed (Space &home, CompactCompressed &p) | |
| CompactCompressed (Home home, const TupleSet &ts0) | |
| CompressedSupport | supports (CTAdvisor &a, int n) const |
| void | setup (Space &home, Table &table, ViewArray< View > &x) |
| bool | full (const Table &table) 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 Attributes inherited from Gecode::Int::Extensional::CompactCompressed< View, true > | |
| const unsigned int | n_words |
| TupleSet | ts |
| Council< CTAdvisor > | c |
Definition at line 1539 of file compact.hpp.
| typedef View Gecode::Int::Extensional::PosCompactCompressed< View, Table >::ViewType |
Definition at line 1542 of file compact.hpp.
| typedef CompactCompressed<View,true> Gecode::Int::Extensional::PosCompactCompressed< View, Table >::Base |
Definition at line 1543 of file compact.hpp.
| typedef Base::ValidSupports Gecode::Int::Extensional::PosCompactCompressed< View, Table >::ValidSupports |
Definition at line 1544 of file compact.hpp.
| typedef Base::CTAdvisor Gecode::Int::Extensional::PosCompactCompressed< View, Table >::CTAdvisor |
Definition at line 1545 of file compact.hpp.
| typedef Base::LostSupports Gecode::Int::Extensional::PosCompactCompressed< View, Table >::LostSupports |
Definition at line 1546 of file compact.hpp.
| typedef CompactStatus<CTAdvisor> Gecode::Int::Extensional::PosCompactCompressed< View, Table >::Status |
Definition at line 1555 of file compact.hpp.
| typedef Status::StatusType Gecode::Int::Extensional::PosCompactCompressed< View, Table >::StatusType |
Definition at line 1556 of file compact.hpp.
|
inline |
Definition at line 1562 of file compact.hpp.
|
inline |
Definition at line 1567 of file compact.hpp.
|
inlinevirtual |
|
inlinestatic |
Definition at line 1578 of file compact.hpp.
|
inlinevirtual |
Delete actor and return its size.
Reimplemented from Gecode::Int::Extensional::CompactCompressed< View, true >.
Definition at line 1584 of file compact.hpp.
|
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 1589 of file compact.hpp.
|
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 1593 of file compact.hpp.
|
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 1597 of file compact.hpp.
|
inline |
Definition at line 1515 of file compact.hpp.
|
inline |
Definition at line 1505 of file compact.hpp.
|
inline |
Definition at line 1484 of file compact.hpp.
|
inline |
Definition at line 1487 of file compact.hpp.
| Status Gecode::Int::Extensional::PosCompactCompressed< View, Table >::status |
Definition at line 1558 of file compact.hpp.
| Table Gecode::Int::Extensional::PosCompactCompressed< View, Table >::table |
Definition at line 1559 of file compact.hpp.
| Council<CTAdvisor> Gecode::Int::Extensional::CompactCompressed< View, pos >::c |
Definition at line 1494 of file compact.hpp.
| TupleSet Gecode::Int::Extensional::CompactCompressed< View, pos >::ts |
Definition at line 1493 of file compact.hpp.