Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::Int::Branch::NqNGL< View > Class Template Reference

No-good literal for disequality. More...

#include <branch.hh>

Public Member Functions

 NqNGL (Space &home, View x, int n)
 Constructor for creation.
 
 NqNGL (Space &home, NqNGL &ngl)
 Constructor for cloning ngl.
 
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 NGLcopy (Space &home)
 Create copy.
 
- Public Member Functions inherited from Gecode::ViewValNGL< View, int, PC_INT_DOM >
 ViewValNGL (Space &home, View x, int n)
 Initialize for propagator p with view x and value n.
 
 ViewValNGL (Space &home, ViewValNGL &ngl)
 Constructor for cloning ngl.
 
virtual void subscribe (Space &home, Propagator &p)
 Create subscription for no-good literal.
 
virtual void cancel (Space &home, Propagator &p)
 Cancel subscription for no-good literal.
 
virtual void reschedule (Space &home, Propagator &p)
 Schedule propagator p.
 
virtual size_t dispose (Space &home)
 Dispose.
 
- Public Member Functions inherited from Gecode::NGL
 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)
 
bool leaf (void) const
 Test whether literal is a leaf.
 
NGLnext (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
 
NGLadd (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

- 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.
 
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.
 
- Protected Attributes inherited from Gecode::ViewValNGL< View, int, PC_INT_DOM >
View x
 The stored view.
 
int n
 The stored value.
 

Detailed Description

template<class View>
class Gecode::Int::Branch::NqNGL< View >

No-good literal for disequality.

Definition at line 429 of file branch.hh.

Constructor & Destructor Documentation

◆ NqNGL() [1/2]

template<class View >
Gecode::Int::Branch::NqNGL< View >::NqNGL ( Space & home,
View x,
int n )
inline

Constructor for creation.

Definition at line 66 of file ngl.hpp.

◆ NqNGL() [2/2]

template<class View >
Gecode::Int::Branch::NqNGL< View >::NqNGL ( Space & home,
NqNGL< View > & ngl )
inline

Constructor for cloning ngl.

Definition at line 70 of file ngl.hpp.

Member Function Documentation

◆ status()

template<class View >
NGL::Status Gecode::Int::Branch::NqNGL< View >::status ( const Space & home) const
virtual

Test the status of the no-good literal.

Implements Gecode::NGL.

Definition at line 79 of file ngl.hpp.

◆ prune()

template<class View >
ExecStatus Gecode::Int::Branch::NqNGL< View >::prune ( Space & home)
virtual

Propagate the negation of the no-good literal.

Implements Gecode::NGL.

Definition at line 87 of file ngl.hpp.

◆ copy()

template<class View >
NGL * Gecode::Int::Branch::NqNGL< View >::copy ( Space & home)
virtual

Create copy.

Implements Gecode::NGL.

Definition at line 74 of file ngl.hpp.


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