Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC > Class Template Reference
#include <arithmetic.hh>
Inherits Gecode::MixTernaryPropagator< VA, PC_INT_DOM, Gecode::VB< P, b >, PC_INT_DOM, VC, PC_INT_DOM >.
Detailed Description
template<class Val, class VA, class VB, class VC>
class Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >
Domain consistent positive multiplication propagator.
This propagator provides multiplication for positive views only.
Definition at line 633 of file arithmetic.hh.
Public Member Functions | |
MultPlusDom (Space *home, VA x0, VB x1, VC x2) | |
Constructor for posting. | |
MultPlusDom (Space *home, bool share, MultPlusDom< Val, VA, VB, VC > &p) | |
Constructor for cloning p. | |
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, VC x2) |
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. |
Constructor & Destructor Documentation
template<class Val, class VA, class VB, class VC>
Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::MultPlusDom | ( | Space * | home, | |
VA | x0, | |||
VB | x1, | |||
VC | x2 | |||
) | [inline] |
template<class Val, class VA, class VB, class VC>
Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::MultPlusDom | ( | Space * | home, | |
bool | share, | |||
MultPlusDom< Val, VA, VB, VC > & | p | |||
) | [inline] |
Member Function Documentation
template<class Val, class VA, class VB, class VC>
ExecStatus Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::post | ( | Space * | home, | |
VA | x0, | |||
VB | x1, | |||
VC | x2 | |||
) | [inline, static] |
template<class Val, class VA, class VB, class VC>
void Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
template<class Val, class VA, class VB, class VC>
Actor * Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
template<class Val, class VA, class VB, class VC>
PropCost Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function.
If in stage for bounds propagation, the cost is PC_TERNARY_LO. Otherwise it is PC_TERNARY_HI.
Reimplemented from Gecode::MixTernaryPropagator< View0, pc0, View1, pc1, View2, pc2 >.
template<class Val, class VA, class VB, class VC>
ExecStatus Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
template<class Val, class VA, class VB, class VC>
Reflection::ActorSpec Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
template<class Val, class VA, class VB, class VC>
Support::Symbol Gecode::Int::Arithmetic::MultPlusDom< Val, VA, VB, VC >::ati | ( | void | ) | [inline, static] |
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh (Revision: 7352)
- gecode/int/arithmetic/mult.icc (Revision: 7352)