Generated on for Gecode by doxygen 1.17.0

Equality finalizer and zero witness for the pairwise organization. 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::MixNaryOnePropagator< 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, ViewArray< IntView > &x, IntView z, const IntDistance &d, const IntSharedArray &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

 Finalize (Home home, ViewArray< IntView > &x, IntView z, const IntDistance &d0, const IntSharedArray &r0)
 Constructor for posting.
 Finalize (Space &home, Finalize &p)
 Constructor for cloning.
Protected Member Functions inherited from Gecode::MixNaryOnePropagator< IntView, PC_INT_DOM, IntView, PC_INT_BND >
 MixNaryOnePropagator (Space &home, MixNaryOnePropagator &p)
 Constructor for cloning p.
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.
IntSharedArray r
 Shared pair requirements.
Protected Attributes inherited from Gecode::MixNaryOnePropagator< IntView, PC_INT_DOM, IntView, PC_INT_BND >
ViewArray< IntView > x
 Array of views.
IntView y
 Single view.

Detailed Description

Equality finalizer and zero witness for the pairwise organization.

Requires

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

Constructor & Destructor Documentation

◆ Finalize() [1/2]

Gecode::Int::MinDistance::Finalize::Finalize ( Home home,
ViewArray< IntView > & x,
IntView z,
const IntDistance & d0,
const IntSharedArray & r0 )
inlineprotected

Constructor for posting.

Definition at line 223 of file prop.hpp.

◆ Finalize() [2/2]

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

Constructor for cloning.

Definition at line 231 of file prop.hpp.

Member Function Documentation

◆ post()

ExecStatus Gecode::Int::MinDistance::Finalize::post ( Home home,
ViewArray< IntView > & x,
IntView z,
const IntDistance & d,
const IntSharedArray & r )
inlinestatic

Post propagator.

Definition at line 236 of file prop.hpp.

◆ copy()

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 243 of file prop.hpp.

◆ cost()

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

Cost function.

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

Definition at line 248 of file prop.hpp.

◆ propagate()

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 253 of file prop.hpp.

◆ dispose()

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

Cancel subscriptions and dispose shared data.

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

Definition at line 269 of file prop.hpp.

Member Data Documentation

◆ d

IntDistance Gecode::Int::MinDistance::Finalize::d
protected

Shared distances.

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

◆ r

IntSharedArray Gecode::Int::MinDistance::Finalize::r
protected

Shared pair requirements.

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


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