Gecode::Int::Bool::NaryEqv Class Reference
[Integer propagators]
Boolean n-ary equivalence propagator. More...
#include <bool.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low binary). | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< BoolView > &x, int pm2) |
Post propagator . | |
Protected Member Functions | |
void | resubscribe (Space &home, BoolView &x0) |
Update subscription. | |
NaryEqv (Home home, ViewArray< BoolView > &x, int pm2) | |
Constructor for posting. | |
NaryEqv (Space &home, bool share, NaryEqv &p) | |
Constructor for cloning p. | |
Protected Attributes | |
ViewArray< BoolView > | x |
Views not yet subscribed to. | |
int | pm2 |
Parity information mod 2. |
Detailed Description
Boolean n-ary equivalence propagator.
Enforces that the parity of the views is odd.
Requires
#include <gecode/int/bool.hh>
Definition at line 457 of file bool.hh.
Constructor & Destructor Documentation
Member Function Documentation
PropCost Gecode::Int::Bool::NaryEqv::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [virtual] |
Cost function (defined as low binary).
Reimplemented from Gecode::BinaryPropagator< BoolView, PC_BOOL_VAL >.
ExecStatus Gecode::Int::Bool::NaryEqv::propagate | ( | Space & | home, | |
const ModEventDelta & | med | |||
) | [virtual] |
ExecStatus Gecode::Int::Bool::NaryEqv::post | ( | Home | home, | |
ViewArray< BoolView > & | x, | |||
int | pm2 | |||
) | [static] |
size_t Gecode::Int::Bool::NaryEqv::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::BinaryPropagator< BoolView, PC_BOOL_VAL >.
Member Data Documentation
ViewArray<BoolView> Gecode::Int::Bool::NaryEqv::x [protected] |
int Gecode::Int::Bool::NaryEqv::pm2 [protected] |
The documentation for this class was generated from the following files:
- gecode/int/bool.hh (Revision: 15137)
- gecode/int/bool/eqv.cpp (Revision: 15116)
- gecode/int/bool/eqv.hpp (Revision: 14967)