Generated on for Gecode by doxygen 1.17.0

Reified bounds propagator for divisibility. 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 ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
Public Member Functions inherited from Gecode::Int::ReBinaryPropagator< IntView, PC_INT_BND, BoolView >
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, 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

 ReDivides (Home home, IntView x0, IntView x1, BoolView b)
 Constructor for posting.
 ReDivides (Space &home, ReDivides< rm > &p)
 Constructor for cloning p.
Protected Member Functions inherited from Gecode::Int::ReBinaryPropagator< IntView, PC_INT_BND, BoolView >
 ReBinaryPropagator (Space &home, ReBinaryPropagator &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.

Additional Inherited Members

Protected Attributes inherited from Gecode::Int::ReBinaryPropagator< IntView, PC_INT_BND, BoolView >
IntView x0
 Two views.
IntView x1
BoolView b
 Boolean control view.

Detailed Description

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

Reified bounds propagator for divisibility.

The relation is \(\exists k\in\mathbb Z:x_1=x_0k\). Requires

Definition at line 845 of file arithmetic.hh.

Constructor & Destructor Documentation

◆ ReDivides() [1/2]

template<ReifyMode rm>
Gecode::Int::Arithmetic::ReDivides< rm >::ReDivides ( Home home,
IntView x0,
IntView x1,
BoolView b )
inlineprotected

Constructor for posting.

Definition at line 107 of file divides.hpp.

◆ ReDivides() [2/2]

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

Constructor for cloning p.

Definition at line 136 of file divides.hpp.

Member Function Documentation

◆ post()

template<ReifyMode rm>
ExecStatus Gecode::Int::Arithmetic::ReDivides< rm >::post ( Home home,
IntView x0,
IntView x1,
BoolView b )
inlinestatic

Post propagator.

Definition at line 114 of file divides.hpp.

◆ copy()

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 141 of file divides.hpp.

◆ cost()

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

Cost function.

Reimplemented from Gecode::Int::ReBinaryPropagator< IntView, PC_INT_BND, BoolView >.

Definition at line 147 of file divides.hpp.

◆ propagate()

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 153 of file divides.hpp.

◆ dispose()

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

Delete propagator and return its size.

Reimplemented from Gecode::Int::ReBinaryPropagator< IntView, PC_INT_BND, BoolView >.

Definition at line 200 of file divides.hpp.


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