Gecode::Int::Arithmetic::AbsDom< View > Class Template Reference
[Integer propagators]
#include <arithmetic.hh>
Inherits Gecode::BinaryPropagator< View, PC_INT_DOM >.
Detailed Description
template<class View>
class Gecode::Int::Arithmetic::AbsDom< View >
Domain-consistent absolute value propagator.
Requires
#include "gecode/int/arithmetic.hh"
Definition at line 89 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 domain-consistent propagator . | |
Protected Member Functions | |
| AbsDom (Space *home, bool share, AbsDom &p) | |
| Constructor for cloning p. | |
| AbsDom (Space *home, View x0, View x1) | |
| Constructor for posting. | |
Constructor & Destructor Documentation
template<class View>
| Gecode::Int::Arithmetic::AbsDom< View >::AbsDom | ( | Space * | home, | |
| bool | share, | |||
| AbsDom< View > & | p | |||
| ) | [protected] |
Constructor for cloning p.
template<class View>
| Gecode::Int::Arithmetic::AbsDom< View >::AbsDom | ( | Space * | home, | |
| View | x0, | |||
| View | x1 | |||
| ) | [inline, protected] |
Member Function Documentation
template<class View>
| Actor * Gecode::Int::Arithmetic::AbsDom< View >::copy | ( | Space * | home, | |
| bool | share | |||
| ) | [virtual] |
template<class View>
| PropCost Gecode::Int::Arithmetic::AbsDom< View >::cost | ( | void | ) | const [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::BinaryPropagator< View, PC_INT_DOM >.
template<class View>
| ExecStatus Gecode::Int::Arithmetic::AbsDom< View >::propagate | ( | Space * | home | ) | [virtual] |
template<class View>
| ExecStatus Gecode::Int::Arithmetic::AbsDom< 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)

.