Generated on for Gecode by doxygen 1.17.0

Bounds propagator for an exact 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 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::NaryOnePropagator< 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 y, bool neg=false)
 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

 Product (Home home, ViewArray< IntView > &x, IntView y, bool neg)
 Constructor for posting.
 Product (Space &home, Product &p)
 Constructor for cloning p.
Protected Member Functions inherited from Gecode::NaryOnePropagator< IntView, PC_INT_BND >
 NaryOnePropagator (Space &home, NaryOnePropagator &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

bool neg
 Whether the remaining product is negated.
Protected Attributes inherited from Gecode::NaryOnePropagator< IntView, PC_INT_BND >
ViewArray< IntView > x
 Array of views.
IntView y
 Single view.

Detailed Description

Bounds propagator for an exact n-ary product.

Requires

Definition at line 879 of file arithmetic.hh.

Constructor & Destructor Documentation

◆ Product() [1/2]

Gecode::Int::Arithmetic::Product::Product ( Home home,
ViewArray< IntView > & x,
IntView y,
bool neg )
inlineprotected

Constructor for posting.

Definition at line 284 of file product.hpp.

◆ Product() [2/2]

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

Constructor for cloning p.

Definition at line 324 of file product.hpp.

Member Function Documentation

◆ post()

ExecStatus Gecode::Int::Arithmetic::Product::post ( Home home,
ViewArray< IntView > & x,
IntView y,
bool neg = false )
inlinestatic

Post propagator.

Definition at line 290 of file product.hpp.

◆ copy()

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 328 of file product.hpp.

◆ cost()

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

Cost function.

Reimplemented from Gecode::NaryOnePropagator< IntView, PC_INT_BND >.

Definition at line 333 of file product.hpp.

◆ propagate()

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 345 of file product.hpp.

◆ dispose()

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

Delete propagator and return its size.

Reimplemented from Gecode::NaryOnePropagator< IntView, PC_INT_BND >.

Definition at line 338 of file product.hpp.

Member Data Documentation

◆ neg

bool Gecode::Int::Arithmetic::Product::neg
protected

Whether the remaining product is negated.

Definition at line 884 of file arithmetic.hh.


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