Class for a sentinel no-good literal. More...
#include <nogoods.hh>
Public Member Functions | |
NoNGL (void) | |
Constructor for creation. | |
NoNGL (Space &home) | |
Constructor for creation. | |
NoNGL (Space &home, NoNGL &ngl) | |
Constructor for cloning ngl. | |
virtual void | subscribe (Space &home, Propagator &p) |
Subscribe propagator p to all views of the no-good literal. | |
virtual void | reschedule (Space &home, Propagator &p) |
Schedule propagator p for all views of the no-good literal. | |
virtual void | cancel (Space &home, Propagator &p) |
Cancel propagator p from all views of the no-good literal. | |
virtual NGL::Status | status (const Space &home) const |
Test the status of the no-good literal. | |
virtual ExecStatus | prune (Space &home) |
Propagate the negation of the no-good literal. | |
virtual NGL * | copy (Space &home) |
Create copy. | |
![]() | |
NGL (void) | |
Constructor for creation. | |
NGL (Space &home) | |
Constructor for creation. | |
NGL (Space &home, NGL &ngl) | |
Constructor for cloning ngl. | |
virtual bool | notice (void) const |
Whether dispose must always be called (returns false) | |
virtual size_t | dispose (Space &home) |
Dispose. | |
bool | leaf (void) const |
Test whether literal is a leaf. | |
NGL * | next (void) const |
Return pointer to next literal. | |
void | leaf (bool l) |
Mark literal as leaf or not. | |
void | next (NGL *n) |
Set pointer to next literal | |
NGL * | add (NGL *n, bool l) |
Add node n and mark it as leaf l and return n. | |
virtual | ~NGL (void) |
To avoid warnings. | |
Additional Inherited Members | |
![]() | |
enum | Status { FAILED , SUBSUMED , NONE } |
The status of a no-good literal. More... | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. | |
static void | operator delete (void *s, Space &home) |
Return memory to space. | |
static void | operator delete (void *p) |
Needed for exceptions. | |
static void * | operator new (size_t s) |
Not used. | |
Class for a sentinel no-good literal.
Definition at line 42 of file nogoods.hh.
|
inline |
Constructor for creation.
Definition at line 37 of file nogoods.hpp.
|
inline |
Constructor for creation.
Definition at line 40 of file nogoods.hpp.
Constructor for cloning ngl.
Definition at line 44 of file nogoods.hpp.
|
virtual |
Subscribe propagator p to all views of the no-good literal.
Implements Gecode::NGL.
Definition at line 49 of file nogoods.cpp.
|
virtual |
Schedule propagator p for all views of the no-good literal.
Implements Gecode::NGL.
Definition at line 57 of file nogoods.cpp.
|
virtual |
Cancel propagator p from all views of the no-good literal.
Implements Gecode::NGL.
Definition at line 53 of file nogoods.cpp.
|
virtual |
Test the status of the no-good literal.
Implements Gecode::NGL.
Definition at line 61 of file nogoods.cpp.
|
virtual |
Propagate the negation of the no-good literal.
Implements Gecode::NGL.
Definition at line 66 of file nogoods.cpp.