Boolean n-ary equivalence propagator. More...
#include <bool.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. More... | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low binary) More... | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. More... | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. More... | |
![]() | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. More... | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Advise function. More... | |
double | afc (const Space &home) const |
Return the accumlated failure count. More... | |
![]() |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< BoolView > &x, int pm2) |
Post propagator ![]() | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. More... | |
static void | operator delete (void *p, Space &home) |
No-op for exceptions. More... | |
Protected Member Functions | |
void | resubscribe (Space &home, BoolView &x0) |
Update subscription. More... | |
NaryEqv (Home home, ViewArray< BoolView > &x, int pm2) | |
Constructor for posting. More... | |
NaryEqv (Space &home, bool share, NaryEqv &p) | |
Constructor for cloning p. More... | |
![]() | |
BinaryPropagator (Space &home, bool share, BinaryPropagator &p) | |
Constructor for cloning p. More... | |
BinaryPropagator (Home home, BoolViewx0, BoolViewx1) | |
Constructor for creation. More... | |
BinaryPropagator (Space &home, bool share, Propagator &p, BoolViewx0, BoolViewx1) | |
Constructor for rewriting p during cloning. More... | |
![]() | |
Propagator (Home home) | |
Constructor for posting. More... | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. More... | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. More... | |
Protected Attributes | |
ViewArray< BoolView > | x |
Views not yet subscribed to. More... | |
int | pm2 |
Parity information mod 2. More... | |
![]() | |
BoolView | x0 |
Two views. More... | |
BoolView | x1 |
Boolean n-ary equivalence propagator.
Enforces that the parity of the views is odd.
Requires
|
virtual |
Cost function (defined as low binary)
Reimplemented from Gecode::BinaryPropagator< BoolView, PC_BOOL_VAL >.
|
virtual |
|
static |
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::BinaryPropagator< BoolView, PC_BOOL_VAL >.
|
protected |