Generated on for Gecode by doxygen 1.18.0
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 >

Subscribe once per position and revisit only affected complete windows.

Definition at line 66 of file open.hpp.

Constructor & Destructor Documentation

◆ OpenWindowPropagator() [1/2]

template<class View>
Gecode::Int::Sequence::OpenWindowPropagator< View >::OpenWindowPropagator ( Home home,
OpenViewList< View > list,
int width0 )
inlineprotected

Definition at line 77 of file open.hpp.

◆ OpenWindowPropagator() [2/2]

template<class View>
Gecode::Int::Sequence::OpenWindowPropagator< View >::OpenWindowPropagator ( Space & home,
OpenWindowPropagator< View > & p )
inlineprotected

Definition at line 81 of file open.hpp.

Member Function Documentation

◆ changed()

template<class View>
void Gecode::Int::Sequence::OpenWindowPropagator< View >::changed ( int index)
inlineprotected

Definition at line 88 of file open.hpp.

◆ appended()

template<class View>
void Gecode::Int::Sequence::OpenWindowPropagator< View >::appended ( int size)
inlineprotected

Definition at line 94 of file open.hpp.

◆ subscribe()

template<class View>
void Gecode::Int::Sequence::OpenWindowPropagator< View >::subscribe ( Space & home,
int index )
inlineprotected

Definition at line 103 of file open.hpp.

◆ dispose_windows()

template<class View>
void Gecode::Int::Sequence::OpenWindowPropagator< View >::dispose_windows ( Space & home)
inlineprotected

Definition at line 110 of file open.hpp.

◆ cost()

template<class View>
virtual PropCost Gecode::Int::Sequence::OpenWindowPropagator< View >::cost ( const Space & home,
const ModEventDelta & med ) const
inlinevirtual

Cost function.

Reimplemented from Gecode::Int::OpenListPropagator< View >.

Definition at line 123 of file open.hpp.

◆ reschedule()

template<class View>
virtual void Gecode::Int::Sequence::OpenWindowPropagator< View >::reschedule ( Space & home)
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 >.

Definition at line 128 of file open.hpp.

Member Data Documentation

◆ width

template<class View>
int Gecode::Int::Sequence::OpenWindowPropagator< View >::width
protected

Definition at line 71 of file open.hpp.

◆ first

template<class View>
int Gecode::Int::Sequence::OpenWindowPropagator< View >::first
protected

Inclusive range of window starts needing propagation.

Definition at line 73 of file open.hpp.

◆ last

template<class View>
int Gecode::Int::Sequence::OpenWindowPropagator< View >::last
protected

Definition at line 74 of file open.hpp.

◆ council

Definition at line 75 of file open.hpp.


The documentation for this class was generated from the following file: