Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Search::Meta::NoNGL Class Reference

Class for a sentinel no-good literal. More...

#include <nogoods.hh>

Public Member Functions

 NoNGL (void)
 Constructor for creation. More...
 
 NoNGL (Space &home)
 Constructor for creation. More...
 
 NoNGL (Space &home, bool share, NoNGL &ngl)
 Constructor for cloning ngl. More...
 
virtual void subscribe (Space &home, Propagator &p)
 Subscribe propagator p to all views of the no-good literal. More...
 
virtual void cancel (Space &home, Propagator &p)
 Cancel propagator p from all views of the no-good literal. More...
 
virtual NGL::Status status (const Space &home) const
 Test the status of the no-good literal. More...
 
virtual ExecStatus prune (Space &home)
 Propagate the negation of the no-good literal. More...
 
virtual NGLcopy (Space &home, bool share)
 Create copy. More...
 
- Public Member Functions inherited from Gecode::NGL
 NGL (void)
 Constructor for creation. More...
 
 NGL (Space &home)
 Constructor for creation. More...
 
 NGL (Space &home, bool share, NGL &ngl)
 Constructor for cloning ngl. More...
 
virtual bool notice (void) const
 Whether dispose must always be called (returns false) More...
 
virtual size_t dispose (Space &home)
 Dispose. More...
 
bool leaf (void) const
 Test whether literal is a leaf. More...
 
NGLnext (void) const
 Return pointer to next literal. More...
 
void leaf (bool l)
 Mark literal as leaf or not. More...
 
void next (NGL *n)
 Set pointer to next literal More...
 
NGLadd (NGL *n, bool l)
 Add node n and mark it as leaf l and return n. More...
 

Additional Inherited Members

- Public Types inherited from Gecode::NGL
enum  Status { FAILED, SUBSUMED, NONE }
 The status of a no-good literal. More...
 
- Static Public Member Functions inherited from Gecode::NGL
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *s, Space &home)
 Return memory to space. More...
 
static void operator delete (void *p)
 Needed for exceptions. More...
 

Detailed Description

Class for a sentinel no-good literal.

Definition at line 46 of file nogoods.hh.

Constructor & Destructor Documentation

Gecode::Search::Meta::NoNGL::NoNGL ( void  )
inline

Constructor for creation.

Definition at line 92 of file nogoods.hh.

Gecode::Search::Meta::NoNGL::NoNGL ( Space home)
inline

Constructor for creation.

Definition at line 95 of file nogoods.hh.

Gecode::Search::Meta::NoNGL::NoNGL ( Space home,
bool  share,
NoNGL ngl 
)
inline

Constructor for cloning ngl.

Definition at line 99 of file nogoods.hh.

Member Function Documentation

void Gecode::Search::Meta::NoNGL::subscribe ( Space home,
Propagator p 
)
virtual

Subscribe propagator p to all views of the no-good literal.

Implements Gecode::NGL.

Definition at line 53 of file nogoods.cpp.

void Gecode::Search::Meta::NoNGL::cancel ( Space home,
Propagator p 
)
virtual

Cancel propagator p from all views of the no-good literal.

Implements Gecode::NGL.

Definition at line 57 of file nogoods.cpp.

NGL::Status Gecode::Search::Meta::NoNGL::status ( const Space home) const
virtual

Test the status of the no-good literal.

Implements Gecode::NGL.

Definition at line 61 of file nogoods.cpp.

ExecStatus Gecode::Search::Meta::NoNGL::prune ( Space home)
virtual

Propagate the negation of the no-good literal.

Implements Gecode::NGL.

Definition at line 66 of file nogoods.cpp.

NGL * Gecode::Search::Meta::NoNGL::copy ( Space home,
bool  share 
)
virtual

Create copy.

Implements Gecode::NGL.

Definition at line 71 of file nogoods.cpp.


The documentation for this class was generated from the following files: