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

No-good propagator. More...

#include <nogoods.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Perform copying during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Const function (defined as low unary) 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...
 
- Public Member Functions inherited from Gecode::Propagator
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...
 
- Public Member Functions inherited from Gecode::Actor

Static Public Member Functions

template<class Path >
static ExecStatus post (Space &home, const Path &p)
 Post propagator for path p. More...
 
- Static Public Member Functions inherited from Gecode::Actor
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

 NoGoodsProp (Home home, NGL *root)
 Constructor for creation. More...
 
 NoGoodsProp (Space &home, bool shared, NoGoodsProp &p)
 Constructor for cloning p. More...
 
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting. More...
 
 Propagator (Space &home, bool share, Propagator &p)
 Constructor for cloning p. More...
 
Propagatorfwd (void) const
 Return forwarding pointer during copying. More...
 

Protected Attributes

NGLroot
 Root of no-good literal tree. More...
 
unsigned int n
 Number of no-good literals with subscriptions. More...
 

Detailed Description

No-good propagator.

Definition at line 67 of file nogoods.hh.

Constructor & Destructor Documentation

Gecode::Search::Meta::NoGoodsProp::NoGoodsProp ( Home  home,
NGL root 
)
inlineprotected

Constructor for creation.

Definition at line 105 of file nogoods.hh.

Gecode::Search::Meta::NoGoodsProp::NoGoodsProp ( Space home,
bool  shared,
NoGoodsProp p 
)
inlineprotected

Constructor for cloning p.

Definition at line 128 of file nogoods.hh.

Member Function Documentation

Actor * Gecode::Search::Meta::NoGoodsProp::copy ( Space home,
bool  share 
)
virtual

Perform copying during cloning.

Implements Gecode::Actor.

Definition at line 77 of file nogoods.cpp.

PropCost Gecode::Search::Meta::NoGoodsProp::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Const function (defined as low unary)

Implements Gecode::Propagator.

Definition at line 82 of file nogoods.cpp.

ExecStatus Gecode::Search::Meta::NoGoodsProp::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 87 of file nogoods.cpp.

template<class Path >
ExecStatus Gecode::Search::Meta::NoGoodsProp::post ( Space home,
const Path &  p 
)
inlinestatic

Post propagator for path p.

Definition at line 145 of file nogoods.hh.

size_t Gecode::Search::Meta::NoGoodsProp::dispose ( Space home)
virtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 183 of file nogoods.cpp.

Member Data Documentation

NGL* Gecode::Search::Meta::NoGoodsProp::root
protected

Root of no-good literal tree.

Definition at line 70 of file nogoods.hh.

unsigned int Gecode::Search::Meta::NoGoodsProp::n
protected

Number of no-good literals with subscriptions.

Definition at line 72 of file nogoods.hh.


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