Reified bounds propagator for a fixed-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, int 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 | |
| ReProductMod (Home home, ViewArray< IntView > &x, int m, IntView y, BoolView b) | |
| Constructor for posting. | |
| ReProductMod (Space &home, ReProductMod< 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 | y |
| Canonical residue. | |
| BoolView | b |
| Reification control. | |
| int | m |
| Positive modulus. | |
Detailed Description
class Gecode::Int::Arithmetic::ReProductMod< rm >
Reified bounds propagator for a fixed-modulus n-ary product.
Requires
Definition at line 1052 of file arithmetic.hh.
Constructor & Destructor Documentation
◆ ReProductMod() [1/2]
|
inlineprotected |
Constructor for posting.
Definition at line 811 of file product-mod.hpp.
◆ ReProductMod() [2/2]
|
inlineprotected |
Constructor for cloning p.
Definition at line 847 of file product-mod.hpp.
Member Function Documentation
◆ post()
|
inlinestatic |
Post propagator.
Definition at line 822 of file product-mod.hpp.
◆ copy()
|
inlinevirtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 854 of file product-mod.hpp.
◆ cost()
|
inlinevirtual |
◆ reschedule()
|
inlinevirtual |
Reschedule propagator.
Implements Gecode::Propagator.
Definition at line 866 of file product-mod.hpp.
◆ propagate()
|
inlinevirtual |
◆ dispose()
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 905 of file product-mod.hpp.
Member Data Documentation
◆ x
|
protected |
Factors.
Definition at line 1055 of file arithmetic.hh.
◆ y
|
protected |
Canonical residue.
Definition at line 1057 of file arithmetic.hh.
◆ b
|
protected |
Reification control.
Definition at line 1059 of file arithmetic.hh.
◆ m
|
protected |
Positive modulus.
Definition at line 1061 of file arithmetic.hh.
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh
- gecode/int/arithmetic/product-mod.hpp
