Generated on for Gecode by doxygen 1.17.0

Bounds propagator for a variable-modulus n-ary product. More...

#include <gecode/int/arithmetic.hh>

Public Member Functions

virtual Actor * copy (Space &home)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function.
virtual void reschedule (Space &home)
 Reschedule propagator.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
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 m, IntView y)
 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

 ProductModVar (Home home, ViewArray< IntView > &x, IntView m, IntView y)
 Constructor for posting.
 ProductModVar (Space &home, ProductModVar &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

ViewArray< IntView > x
 Factors.
IntView m
 Positive modulus.
IntView y
 Canonical residue.

Detailed Description

Bounds propagator for a variable-modulus n-ary product.

Requires

Definition at line 981 of file arithmetic.hh.

Constructor & Destructor Documentation

◆ ProductModVar() [1/2]

Gecode::Int::Arithmetic::ProductModVar::ProductModVar ( Home home,
ViewArray< IntView > & x,
IntView m,
IntView y )
inlineprotected

Constructor for posting.

Definition at line 570 of file product-mod.hpp.

◆ ProductModVar() [2/2]

Gecode::Int::Arithmetic::ProductModVar::ProductModVar ( Space & home,
ProductModVar & p )
inlineprotected

Constructor for cloning p.

Definition at line 609 of file product-mod.hpp.

Member Function Documentation

◆ post()

ExecStatus Gecode::Int::Arithmetic::ProductModVar::post ( Home home,
ViewArray< IntView > & x,
IntView m,
IntView y )
inlinestatic

Post propagator.

Definition at line 580 of file product-mod.hpp.

◆ copy()

Actor * Gecode::Int::Arithmetic::ProductModVar::copy ( Space & home)
inlinevirtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 615 of file product-mod.hpp.

◆ cost()

PropCost Gecode::Int::Arithmetic::ProductModVar::cost ( const Space & home,
const ModEventDelta & med ) const
inlinevirtual

Cost function.

Implements Gecode::Propagator.

Definition at line 620 of file product-mod.hpp.

◆ reschedule()

void Gecode::Int::Arithmetic::ProductModVar::reschedule ( Space & home)
inlinevirtual

Reschedule propagator.

Implements Gecode::Propagator.

Definition at line 625 of file product-mod.hpp.

◆ propagate()

ExecStatus Gecode::Int::Arithmetic::ProductModVar::propagate ( Space & home,
const ModEventDelta & med )
inlinevirtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 632 of file product-mod.hpp.

◆ dispose()

size_t Gecode::Int::Arithmetic::ProductModVar::dispose ( Space & home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 699 of file product-mod.hpp.

Member Data Documentation

◆ x

ViewArray<IntView> Gecode::Int::Arithmetic::ProductModVar::x
protected

Factors.

Definition at line 984 of file arithmetic.hh.

◆ m

IntView Gecode::Int::Arithmetic::ProductModVar::m
protected

Positive modulus.

Definition at line 986 of file arithmetic.hh.

◆ y

IntView Gecode::Int::Arithmetic::ProductModVar::y
protected

Canonical residue.

Definition at line 988 of file arithmetic.hh.


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