Gecode::Int::Arithmetic::SquarePlus< VA, VB > Class Template Reference
#include <arithmetic.hh>
Inherits Gecode::Propagator.
Detailed Description
template<class VA, class VB>
class Gecode::Int::Arithmetic::SquarePlus< VA, VB >
Bounds-consistent positive square propagator.
This propagator provides multiplication for positive views only.
Definition at line 177 of file arithmetic.hh.
Public Member Functions | |
SquarePlus (Space *home, VA x0, VB x1) | |
Constructor for posting. | |
SquarePlus (Space *home, bool share, SquarePlus< VA, VB > &p) | |
Constructor for cloning p. | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
virtual PropCost | cost (void) const |
Cost function (defined as PC_TERNARY_HI). | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, VA x0, VB x1) |
Post propagator ![]() | |
Protected Attributes | |
VA | x0 |
VB | x1 |
Constructor & Destructor Documentation
template<class VA, class VB>
Gecode::Int::Arithmetic::SquarePlus< VA, VB >::SquarePlus | ( | Space * | home, | |
VA | x0, | |||
VB | x1 | |||
) | [inline] |
template<class VA, class VB>
Gecode::Int::Arithmetic::SquarePlus< VA, VB >::SquarePlus | ( | Space * | home, | |
bool | share, | |||
SquarePlus< VA, VB > & | p | |||
) | [inline] |
Member Function Documentation
template<class VA, class VB>
ExecStatus Gecode::Int::Arithmetic::SquarePlus< VA, VB >::post | ( | Space * | home, | |
VA | x0, | |||
VB | x1 | |||
) | [inline, static] |
template<class VA, class VB>
Actor * Gecode::Int::Arithmetic::SquarePlus< VA, VB >::copy | ( | Space * | home, | |
bool | share | |||
) | [virtual] |
template<class VA, class VB>
ExecStatus Gecode::Int::Arithmetic::SquarePlus< VA, VB >::propagate | ( | Space * | home | ) | [virtual] |
template<class VA, class VB>
PropCost Gecode::Int::Arithmetic::SquarePlus< VA, VB >::cost | ( | void | ) | const [virtual] |
template<class VA, class VB>
size_t Gecode::Int::Arithmetic::SquarePlus< VA, VB >::dispose | ( | Space * | home | ) | [virtual] |
Member Data Documentation
template<class VA, class VB>
VA Gecode::Int::Arithmetic::SquarePlus< VA, VB >::x0 [protected] |
Definition at line 179 of file arithmetic.hh.
template<class VA, class VB>
VB Gecode::Int::Arithmetic::SquarePlus< VA, VB >::x1 [protected] |
Definition at line 179 of file arithmetic.hh.
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh (Revision: 3246)
- gecode/int/arithmetic/mult.icc (Revision: 3246)