Boolean clause propagator (disjunctive) More...
#include <bool.hh>
Classes | |
class | Tagged |
Advisors for views (tagged whether for x or y) More... |
Public Member Functions | |
virtual Actor * | copy (Space &home) |
Copy propagator during cloning. | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Give advice to propagator. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low unary) | |
virtual void | reschedule (Space &home) |
Schedule function. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. | |
virtual void | advise (Space &home, Advisor &a) |
Run advisor a to be run on failure in failed space. | |
double | afc (void) const |
Return the accumlated failure count. | |
unsigned int | id (void) const |
Return propagator id. | |
PropagatorGroup | group (void) const |
Return group propagator belongs to. | |
void | group (PropagatorGroup g) |
Add propagator to group g. | |
bool | disabled (void) const |
Whether propagator is currently disabled. | |
virtual | ~Actor (void) |
To avoid warnings. |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< VX > &x, ViewArray< VY > &y, VX z) |
Post propagator ![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. | |
static void | operator delete (void *p, Space &home) |
No-op for exceptions. | |
static void * | operator new (size_t s) |
Not used. | |
static void | operator delete (void *p) |
Not used. |
Protected Member Functions | |
void | cancel (Space &home) |
Cancel subscriptions. | |
Clause (Home home, ViewArray< VX > &x, ViewArray< VY > &y, VX z) | |
Constructor for posting. | |
Clause (Space &home, Clause< VX, VY > &p) | |
Constructor for cloning p. | |
Protected Member Functions inherited from Gecode::Propagator | |
Propagator (Home home) | |
Constructor for posting. | |
Propagator (Space &home, Propagator &p) | |
Constructor for cloning p. | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. | |
Kernel::GPI::Info & | gpi (void) |
Provide access to global propagator information. |
Protected Attributes | |
ViewArray< VX > | x |
Positive views. | |
ViewArray< VY > | y |
Positive views (origin from negative variables) | |
VX | z |
Result. | |
int | n_zero |
The number of views assigned to zero in x and y. | |
Council< Tagged > | c |
The advisor council. |
Boolean clause propagator (disjunctive)
Requires
|
inlineprotected |
Constructor for posting.
Definition at line 204 of file clause.hpp.
|
inlineprotected |
Constructor for cloning p.
Definition at line 214 of file clause.hpp.
|
inlineprotected |
Cancel subscriptions.
Definition at line 293 of file clause.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 238 of file clause.hpp.
|
virtual |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
Definition at line 316 of file clause.hpp.
|
virtual |
Cost function (defined as low unary)
Implements Gecode::Propagator.
Definition at line 287 of file clause.hpp.
|
virtual |
|
virtual |
|
inlinestatic |
Post propagator
Definition at line 246 of file clause.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 307 of file clause.hpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |