Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
Gecode::Int::Arithmetic::ReGcd< rm > Class Template Reference
Reified bounds propagator for \(\gcd(x_0,x_1)=x_2\). 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, IntView x0, IntView x1, IntView x2, 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 | |
| ReGcd (Home home, IntView x0, IntView x1, IntView x2, BoolView b) | |
| Constructor for posting. | |
| ReGcd (Space &home, ReGcd< 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 | |
| IntView | x0 |
| Operands and greatest common divisor. | |
| IntView | x1 |
| IntView | x2 |
| BoolView | b |
| Reification control. | |
Detailed Description
template<ReifyMode rm>
class Gecode::Int::Arithmetic::ReGcd< rm >
class Gecode::Int::Arithmetic::ReGcd< rm >
Reified bounds propagator for \(\gcd(x_0,x_1)=x_2\).
Requires
#include <gecode/int/arithmetic.hh>
Definition at line 803 of file arithmetic.hh.
Constructor & Destructor Documentation
◆ ReGcd() [1/2]
◆ ReGcd() [2/2]
template<ReifyMode rm>
|
inlineprotected |
Member Function Documentation
◆ post()
template<ReifyMode rm>
|
inlinestatic |
◆ copy()
template<ReifyMode rm>
|
inlinevirtual |
◆ cost()
template<ReifyMode rm>
|
inlinevirtual |
◆ reschedule()
template<ReifyMode rm>
|
inlinevirtual |
◆ propagate()
template<ReifyMode rm>
|
inlinevirtual |
◆ dispose()
template<ReifyMode rm>
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Member Data Documentation
◆ x0
template<ReifyMode rm>
|
protected |
Operands and greatest common divisor.
Definition at line 806 of file arithmetic.hh.
◆ x1
template<ReifyMode rm>
|
protected |
Definition at line 807 of file arithmetic.hh.
◆ x2
template<ReifyMode rm>
|
protected |
Definition at line 808 of file arithmetic.hh.
◆ b
template<ReifyMode rm>
|
protected |
Reification control.
Definition at line 810 of file arithmetic.hh.
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh
- gecode/int/arithmetic/gcd.hpp
