Gecode::Int::Arithmetic::SqrPlusDom< VA, VB > Class Template Reference
#include <arithmetic.hh>
Inherits Gecode::MixBinaryPropagator< VA, PC_INT_DOM, Gecode::VB< P, b >, PC_INT_DOM >.
Detailed Description
template<class VA, class VB>
class Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >
Domain consistent positive square propagator.
This propagator provides multiplication for positive views only.
Definition at line 368 of file arithmetic.hh.
Public Member Functions | |
| virtual Actor * | copy (Space *home, bool share) |
| Copy propagator during cloning. | |
| virtual PropCost | cost (ModEventDelta med) const |
| Cost function. | |
| virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
| Perform propagation. | |
| virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
| Specification for this propagator. | |
Static Public Member Functions | |
| static ExecStatus | post (Space *home, VA x0, VB x1) |
Post propagator . | |
| static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
| Post propagator for specification. | |
| static Support::Symbol | ati (void) |
| Name of this propagator. | |
Protected Member Functions | |
| SqrPlusDom (Space *home, VA x0, VB x1) | |
| Constructor for posting. | |
| SqrPlusDom (Space *home, bool share, SqrPlusDom< VA, VB > &p) | |
| Constructor for cloning p. | |
Constructor & Destructor Documentation
template<class VA, class VB>
| Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::SqrPlusDom | ( | Space * | home, | |
| VA | x0, | |||
| VB | x1 | |||
| ) | [inline, protected] |
template<class VA, class VB>
| Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::SqrPlusDom | ( | Space * | home, | |
| bool | share, | |||
| SqrPlusDom< VA, VB > & | p | |||
| ) | [inline, protected] |
Member Function Documentation
template<class VA, class VB>
| ExecStatus Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::post | ( | Space * | home, | |
| VA | x0, | |||
| VB | x1 | |||
| ) | [inline, static] |
template<class VA, class VB>
| void Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::post | ( | Space * | home, | |
| Reflection::VarMap & | vars, | |||
| const Reflection::ActorSpec & | spec | |||
| ) | [inline, static] |
template<class VA, class VB>
| Actor * Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::copy | ( | Space * | home, | |
| bool | share | |||
| ) | [inline, virtual] |
template<class VA, class VB>
| PropCost Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function.
If a view has been assigned, the cost is PC_UNARY_LO. If in stage for bounds propagation, the cost is PC_BINARY_LO. Otherwise it is PC_BINARY_HI.
Reimplemented from Gecode::MixBinaryPropagator< View0, pc0, View1, pc1 >.
template<class VA, class VB>
| ExecStatus Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::propagate | ( | Space * | home, | |
| ModEventDelta | med | |||
| ) | [inline, virtual] |
template<class VA, class VB>
| Reflection::ActorSpec Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::spec | ( | const Space * | home, | |
| Reflection::VarMap & | m | |||
| ) | const [inline, virtual] |
template<class VA, class VB>
| Support::Symbol Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::ati | ( | void | ) | [inline, static] |
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh (Revision: 7352)
- gecode/int/arithmetic/sqr.icc (Revision: 7348)

.