Gecode::Int::Arithmetic::Square< View > Class Template Reference
[Integer propagators]
#include <arithmetic.hh>
Inherits Gecode::BinaryPropagator< View, PC_INT_BND >.
Detailed Description
template<class View>
class Gecode::Int::Arithmetic::Square< View >
Bounds-consistent square propagator.
Requires
#include "gecode/int/arithmetic.hh"
Definition at line 204 of file arithmetic.hh.
Public Member Functions | |
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_BINARY_HI). | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, View x0, View x1) |
Post propagator ![]() | |
Protected Member Functions | |
Square (Space *home, bool share, Square< View > &p) | |
Constructor for cloning p. | |
Square (Space *home, View x0, View x1) | |
Constructor for posting. |
Constructor & Destructor Documentation
template<class View>
Gecode::Int::Arithmetic::Square< View >::Square | ( | Space * | home, | |
bool | share, | |||
Square< View > & | p | |||
) | [inline, protected] |
template<class View>
Gecode::Int::Arithmetic::Square< View >::Square | ( | Space * | home, | |
View | x0, | |||
View | x1 | |||
) | [inline, protected] |
Member Function Documentation
template<class View>
Actor * Gecode::Int::Arithmetic::Square< View >::copy | ( | Space * | home, | |
bool | share | |||
) | [virtual] |
template<class View>
ExecStatus Gecode::Int::Arithmetic::Square< View >::propagate | ( | Space * | home | ) | [virtual] |
template<class View>
PropCost Gecode::Int::Arithmetic::Square< View >::cost | ( | void | ) | const [virtual] |
Cost function (defined as PC_BINARY_HI).
Reimplemented from Gecode::BinaryPropagator< View, PC_INT_BND >.
template<class View>
ExecStatus Gecode::Int::Arithmetic::Square< View >::post | ( | Space * | home, | |
View | x0, | |||
View | x1 | |||
) | [inline, static] |
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh (Revision: 3246)
- gecode/int/arithmetic/mult.icc (Revision: 3246)