Gecode::Int::Rel::NaryEqBnd< View > Class Template Reference
[Integer propagators]
#include <rel.hh>
Inherits Gecode::NaryPropagator< View, PC_INT_BND >.
Detailed Description
template<class View>
class Gecode::Int::Rel::NaryEqBnd< View >
n-ary bounds-consistent equality propagator
Requires
#include "gecode/int/rel.hh"
Definition at line 154 of file rel.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, ViewArray< View > &x) |
Post bounds-consistent propagator ![]() | |
Protected Member Functions | |
NaryEqBnd (Space *home, bool share, NaryEqBnd< View > &p) | |
Constructor for cloning p. | |
NaryEqBnd (Space *home, ViewArray< View > &) | |
Constructor for posting. |
Constructor & Destructor Documentation
template<class View>
Gecode::Int::Rel::NaryEqBnd< View >::NaryEqBnd | ( | Space * | home, | |
bool | share, | |||
NaryEqBnd< View > & | p | |||
) | [inline, protected] |
template<class View>
Gecode::Int::Rel::NaryEqBnd< View >::NaryEqBnd | ( | Space * | home, | |
ViewArray< View > & | ||||
) | [inline, protected] |
Member Function Documentation
template<class View>
Actor * Gecode::Int::Rel::NaryEqBnd< View >::copy | ( | Space * | home, | |
bool | share | |||
) | [virtual] |
template<class View>
PropCost Gecode::Int::Rel::NaryEqBnd< View >::cost | ( | void | ) | const [virtual] |
Cost function.
If a view has been assigned, the cost is PC_UNARY_LO. Otherwise it is dynamic PC_LINEAR_HI.
Reimplemented from Gecode::NaryPropagator< View, PC_INT_BND >.
template<class View>
ExecStatus Gecode::Int::Rel::NaryEqBnd< View >::propagate | ( | Space * | home | ) | [virtual] |
template<class View>
ExecStatus Gecode::Int::Rel::NaryEqBnd< View >::post | ( | Space * | home, | |
ViewArray< View > & | x | |||
) | [static] |
The documentation for this class was generated from the following files:
- gecode/int/rel.hh (Revision: 3579)
- gecode/int/rel/eq.icc (Revision: 3512)