Generated on for Gecode by doxygen 1.18.0

Reified bounds propagator for a variable-modulus 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, BoolView b)
 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

 ReProductModVar (Home home, ViewArray< IntView > &x, IntView m, IntView y, BoolView b)
 Constructor for posting.
 ReProductModVar (Space &home, ReProductModVar< rm > &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
 Modulus (positivity is part of the reified proposition).
IntView y
 Canonical residue.
BoolView b
 Reification control.

Detailed Description

template<ReifyMode rm>
class Gecode::Int::Arithmetic::ReProductModVar< rm >

Reified bounds propagator for a variable-modulus product.

Requires

Definition at line 1015 of file arithmetic.hh.

Constructor & Destructor Documentation

◆ ReProductModVar() [1/2]

template<ReifyMode rm>
Gecode::Int::Arithmetic::ReProductModVar< rm >::ReProductModVar ( Home home,
ViewArray< IntView > & x,
IntView m,
IntView y,
BoolView b )
inlineprotected

Constructor for posting.

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

◆ ReProductModVar() [2/2]

template<ReifyMode rm>
Gecode::Int::Arithmetic::ReProductModVar< rm >::ReProductModVar ( Space & home,
ReProductModVar< rm > & p )
inlineprotected

Constructor for cloning p.

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

Member Function Documentation

◆ post()

template<ReifyMode rm>
ExecStatus Gecode::Int::Arithmetic::ReProductModVar< rm >::post ( Home home,
ViewArray< IntView > & x,
IntView m,
IntView y,
BoolView b )
inlinestatic

Post propagator.

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

◆ copy()

template<ReifyMode rm>
Actor * Gecode::Int::Arithmetic::ReProductModVar< rm >::copy ( Space & home)
inlinevirtual

Copy propagator during cloning.

Implements Gecode::Actor.

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

◆ cost()

template<ReifyMode rm>
PropCost Gecode::Int::Arithmetic::ReProductModVar< rm >::cost ( const Space & home,
const ModEventDelta & med ) const
inlinevirtual

Cost function.

Implements Gecode::Propagator.

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

◆ reschedule()

template<ReifyMode rm>
void Gecode::Int::Arithmetic::ReProductModVar< rm >::reschedule ( Space & home)
inlinevirtual

Reschedule propagator.

Implements Gecode::Propagator.

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

◆ propagate()

template<ReifyMode rm>
ExecStatus Gecode::Int::Arithmetic::ReProductModVar< rm >::propagate ( Space & home,
const ModEventDelta & med )
inlinevirtual

Perform propagation.

Implements Gecode::Propagator.

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

◆ dispose()

template<ReifyMode rm>
size_t Gecode::Int::Arithmetic::ReProductModVar< rm >::dispose ( Space & home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

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

Member Data Documentation

◆ x

Factors.

Definition at line 1018 of file arithmetic.hh.

◆ m

Modulus (positivity is part of the reified proposition).

Definition at line 1020 of file arithmetic.hh.

◆ y

Canonical residue.

Definition at line 1022 of file arithmetic.hh.

◆ b

Reification control.

Definition at line 1024 of file arithmetic.hh.


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