Generated on for Gecode by doxygen 1.18.0
Gecode::Int::OpenListPropagator< View > Class Template Reference

Follow list growth and remember which positions have been incorporated. More...

#include <gecode/int/open-propagator.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

 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

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::OpenListPropagator< View >

Follow list growth and remember which positions have been incorporated.

Definition at line 43 of file open-propagator.hpp.

Constructor & Destructor Documentation

◆ OpenListPropagator() [1/2]

template<class View>
Gecode::Int::OpenListPropagator< View >::OpenListPropagator ( Home home,
OpenViewList< View > list0 )
inlineprotected

Definition at line 49 of file open-propagator.hpp.

◆ OpenListPropagator() [2/2]

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

Definition at line 57 of file open-propagator.hpp.

Member Function Documentation

◆ closed()

template<class View>
bool Gecode::Int::OpenListPropagator< View >::closed ( void ) const
inlineprotected

Definition at line 64 of file open-propagator.hpp.

◆ dispose_base()

template<class View>
void Gecode::Int::OpenListPropagator< View >::dispose_base ( Space & home)
inlineprotected

Definition at line 69 of file open-propagator.hpp.

◆ cost()

◆ reschedule()

template<class View>
virtual void Gecode::Int::OpenListPropagator< 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.

Implements Gecode::Propagator.

Reimplemented in Gecode::Int::Arithmetic::OpenMax< View >, Gecode::Int::Distinct::Open< View >, Gecode::Int::Precede::Open< View >, Gecode::Int::Rel::Open< View, irt >, and Gecode::Int::Sequence::OpenWindowPropagator< View >.

Definition at line 83 of file open-propagator.hpp.

Member Data Documentation

◆ list

template<class View>
OpenViewList<View> Gecode::Int::OpenListPropagator< View >::list
protected

Definition at line 45 of file open-propagator.hpp.

◆ length

template<class View>
IntView Gecode::Int::OpenListPropagator< View >::length
protected

Definition at line 46 of file open-propagator.hpp.

◆ processed

template<class View>
int Gecode::Int::OpenListPropagator< View >::processed
protected

Definition at line 47 of file open-propagator.hpp.


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