Gecode::Int::Arithmetic::AbsBnd< 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::AbsBnd< View >
Bounds-consistent absolute value propagator.
Requires
#include "gecode/int/arithmetic.hh"
Definition at line 46 of file arithmetic.hh.
Public Member Functions | |
| virtual Actor * | copy (Space *home, bool share) |
| Copy propagator during cloning. | |
| virtual PropCost | cost (void) const |
| Cost function. | |
| virtual ExecStatus | propagate (Space *home) |
| Perform propagation. | |
Static Public Member Functions | |
| static ExecStatus | post (Space *home, View x0, View x1) |
Post bounds-consistent propagator . | |
Protected Member Functions | |
| AbsBnd (Space *home, bool share, AbsBnd &p) | |
| Constructor for cloning p. | |
| AbsBnd (Space *home, View x0, View x1) | |
| Constructor for posting. | |
Constructor & Destructor Documentation
template<class View>
| Gecode::Int::Arithmetic::AbsBnd< View >::AbsBnd | ( | Space * | home, | |
| bool | share, | |||
| AbsBnd< View > & | p | |||
| ) | [protected] |
Constructor for cloning p.
template<class View>
| Gecode::Int::Arithmetic::AbsBnd< View >::AbsBnd | ( | Space * | home, | |
| View | x0, | |||
| View | x1 | |||
| ) | [inline, protected] |
Member Function Documentation
template<class View>
| Actor * Gecode::Int::Arithmetic::AbsBnd< View >::copy | ( | Space * | home, | |
| bool | share | |||
| ) | [virtual] |
template<class View>
| PropCost Gecode::Int::Arithmetic::AbsBnd< View >::cost | ( | void | ) | const [virtual] |
Cost function.
If a view has been assigned, the cost is PC_UNARY_LO. Otherwise it is PC_BINARY_LO.
Reimplemented from Gecode::BinaryPropagator< View, PC_INT_BND >.
template<class View>
| ExecStatus Gecode::Int::Arithmetic::AbsBnd< View >::propagate | ( | Space * | home | ) | [virtual] |
template<class View>
| ExecStatus Gecode::Int::Arithmetic::AbsBnd< View >::post | ( | Space * | home, | |
| View | x0, | |||
| View | x1 | |||
| ) | [static] |
The documentation for this class was generated from the following files:
- gecode/int/arithmetic.hh (Revision: 3512)
- gecode/int/arithmetic/abs.icc (Revision: 3512)

.