Generated on for Gecode by doxygen 1.18.0

Forward-bound actor for one selected-position pair. More...

#include <gecode/int/min-distance.hh>

Public Member Functions

virtual Actor * copy (Space &home)
 Copy propagator during cloning.
virtual PropCost cost (const Space &, const ModEventDelta &) const
 Cost function.
virtual ExecStatus propagate (Space &home, const ModEventDelta &)
 Perform propagation.
virtual size_t dispose (Space &home)
 Cancel subscriptions and dispose shared data.
Public Member Functions inherited from Gecode::MixTernaryPropagator< IntView, PC_INT_DOM, IntView, PC_INT_DOM, IntView, PC_INT_BND >
virtual void reschedule (Space &home)
 Schedule 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.
virtual ~Actor (void)
 To avoid warnings.

Static Public Member Functions

static ExecStatus post (Home home, IntView x0, IntView x1, IntView x2, const IntDistance &d, int r)
 Post propagator.
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 Member Functions

 Pair (Home home, IntView x0, IntView y0, IntView z0, const IntDistance &d0, int r0)
 Constructor for posting.
 Pair (Space &home, Pair &p)
 Constructor for cloning.
Protected Member Functions inherited from Gecode::MixTernaryPropagator< IntView, PC_INT_DOM, IntView, PC_INT_DOM, IntView, PC_INT_BND >
 MixTernaryPropagator (Space &home, MixTernaryPropagator &p)
 Constructor for cloning.
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

IntDistance d
 Shared distances.
int r
 Inclusive pair requirement.
Protected Attributes inherited from Gecode::MixTernaryPropagator< IntView, PC_INT_DOM, IntView, PC_INT_DOM, IntView, PC_INT_BND >
IntView x0
 View of type View0.
IntView x1
 View of type View1.
IntView x2
 View of type View2.

Detailed Description

Forward-bound actor for one selected-position pair.

Requires

Definition at line 66 of file min-distance.hh.

Constructor & Destructor Documentation

◆ Pair() [1/2]

Gecode::Int::MinDistance::Pair::Pair ( Home home,
IntView x0,
IntView y0,
IntView z0,
const IntDistance & d0,
int r0 )
inlineprotected

Constructor for posting.

Definition at line 150 of file prop.hpp.

◆ Pair() [2/2]

Gecode::Int::MinDistance::Pair::Pair ( Space & home,
Pair & p )
inlineprotected

Constructor for cloning.

Definition at line 159 of file prop.hpp.

Member Function Documentation

◆ post()

ExecStatus Gecode::Int::MinDistance::Pair::post ( Home home,
IntView x0,
IntView x1,
IntView x2,
const IntDistance & d,
int r )
inlinestatic

Post propagator.

Definition at line 165 of file prop.hpp.

◆ copy()

Actor * Gecode::Int::MinDistance::Pair::copy ( Space & home)
inlinevirtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 179 of file prop.hpp.

◆ cost()

PropCost Gecode::Int::MinDistance::Pair::cost ( const Space & ,
const ModEventDelta &  ) const
inlinevirtual

◆ propagate()

ExecStatus Gecode::Int::MinDistance::Pair::propagate ( Space & home,
const ModEventDelta &  )
inlinevirtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 189 of file prop.hpp.

◆ dispose()

size_t Gecode::Int::MinDistance::Pair::dispose ( Space & home)
inlinevirtual

Cancel subscriptions and dispose shared data.

Reimplemented from Gecode::MixTernaryPropagator< IntView, PC_INT_DOM, IntView, PC_INT_DOM, IntView, PC_INT_BND >.

Definition at line 214 of file prop.hpp.

Member Data Documentation

◆ d

IntDistance Gecode::Int::MinDistance::Pair::d
protected

Shared distances.

Definition at line 71 of file min-distance.hh.

◆ r

int Gecode::Int::MinDistance::Pair::r
protected

Inclusive pair requirement.

Definition at line 73 of file min-distance.hh.


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