Gecode::Int::Sequence::OpenWindowPropagator< View > Class Template Reference
Subscribe once per position and revisit only affected complete windows. More...
#include <gecode/int/sequence/open.hpp>
Public Member Functions | |
| virtual PropCost | cost (const Space &, const ModEventDelta &) const |
| Cost function. | |
| virtual void | reschedule (Space &home) |
| Schedule function. | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med)=0 |
| Propagation function. | |
| 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. | |
| Public Member Functions inherited from Gecode::Actor | |
| virtual Actor * | copy (Space &home)=0 |
| Create copy. | |
| virtual size_t | dispose (Space &home) |
| Delete actor and return its size. | |
| virtual | ~Actor (void) |
| To avoid warnings. | |
Protected Member Functions | |
| OpenWindowPropagator (Home home, OpenViewList< View > list, int width0) | |
| OpenWindowPropagator (Space &home, OpenWindowPropagator &p) | |
| void | changed (int index) |
| void | appended (int size) |
| void | subscribe (Space &home, int index) |
| void | dispose_windows (Space &home) |
| Protected Member Functions inherited from Gecode::Int::OpenListPropagator< View > | |
| OpenListPropagator (Home home, OpenViewList< View > list0) | |
| OpenListPropagator (Space &home, OpenListPropagator &p) | |
| bool | closed (void) const |
| void | dispose_base (Space &home) |
| 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 propagator information. | |
Protected Attributes | |
| int | width |
| int | first |
| Inclusive range of window starts needing propagation. | |
| int | last |
| Council< OpenWindowAdvisor > | council |
| Protected Attributes inherited from Gecode::Int::OpenListPropagator< View > | |
| OpenViewList< View > | list |
| IntView | length |
| int | processed |
Additional Inherited Members | |
| 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. | |
Detailed Description
template<class View>
class Gecode::Int::Sequence::OpenWindowPropagator< View >
class Gecode::Int::Sequence::OpenWindowPropagator< View >
Subscribe once per position and revisit only affected complete windows.
Constructor & Destructor Documentation
◆ OpenWindowPropagator() [1/2]
template<class View>
|
inlineprotected |
◆ OpenWindowPropagator() [2/2]
template<class View>
|
inlineprotected |
Member Function Documentation
◆ changed()
template<class View>
|
inlineprotected |
◆ appended()
template<class View>
|
inlineprotected |
◆ subscribe()
template<class View>
|
inlineprotected |
◆ dispose_windows()
template<class View>
|
inlineprotected |
◆ cost()
template<class View>
|
inlinevirtual |
Cost function.
Reimplemented from Gecode::Int::OpenListPropagator< View >.
◆ reschedule()
template<class View>
|
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.
Reimplemented from Gecode::Int::OpenListPropagator< View >.
Member Data Documentation
◆ width
template<class View>
|
protected |
◆ first
template<class View>
|
protected |
◆ last
template<class View>
|
protected |
◆ council
template<class View>
|
protected |
The documentation for this class was generated from the following file:
- gecode/int/sequence/open.hpp
