Generated on Thu Feb 21 2013 23:12:00 for Gecode by doxygen 1.8.3.1
Gecode::Int::NValues::LqBool< VY > Class Template Reference

Less or equal to number of values propagator for Boolean views. More...

#include <nvalues.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::Int::NValues::BoolBase< VY >
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low unary) 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...
 
double afc (void) const
 Return the accumlated failure count. More...
 

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< BoolView > &x, VY y)
 Post propagator for $\#\{x_0,\ldots,x_{|x|-1}\}\leq y$. More...
 

Protected Member Functions

 LqBool (Home home, int status, ViewArray< BoolView > &x, VY y)
 Constructor for posting. More...
 
 LqBool (Space &home, bool share, LqBool< VY > &p)
 Constructor for cloning p. More...
 
- Protected Member Functions inherited from Gecode::Int::NValues::BoolBase< VY >
 BoolBase (Home home, int status, ViewArray< BoolView > &x, VY y)
 Constructor for posting. More...
 
 BoolBase (Space &home, bool share, BoolBase< VY > &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...
 

Additional Inherited Members

- Protected Attributes inherited from Gecode::Int::NValues::BoolBase< VY >
int status
 Status information about the views. More...
 
Council< ViewAdvisor< BoolView > > c
 The advisor council. More...
 
VY y
 The view for counting the number of values. More...
 
- Static Protected Attributes inherited from Gecode::Int::NValues::BoolBase< VY >
static const int VS_ZERO = 1 << 0
 View status: a zero has already been encountered. More...
 
static const int VS_ONE = 1 << 1
 View status: a one has already been encountered. More...
 

Detailed Description

template<class VY>
class Gecode::Int::NValues::LqBool< VY >

Less or equal to number of values propagator for Boolean views.

Requires

Definition at line 363 of file nvalues.hh.

Constructor & Destructor Documentation

template<class VY >
Gecode::Int::NValues::LqBool< VY >::LqBool ( Home  home,
int  status,
ViewArray< BoolView > &  x,
VY  y 
)
inlineprotected

Constructor for posting.

Definition at line 44 of file bool-lq.hpp.

template<class VY >
Gecode::Int::NValues::LqBool< VY >::LqBool ( Space home,
bool  share,
LqBool< VY > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 49 of file bool-lq.hpp.

Member Function Documentation

template<class VY >
Actor * Gecode::Int::NValues::LqBool< VY >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 54 of file bool-lq.hpp.

template<class VY >
ExecStatus Gecode::Int::NValues::LqBool< VY >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 115 of file bool-lq.hpp.

template<class VY >
ExecStatus Gecode::Int::NValues::LqBool< VY >::post ( Home  home,
ViewArray< BoolView > &  x,
VY  y 
)
inlinestatic

Post propagator for $\#\{x_0,\ldots,x_{|x|-1}\}\leq y$.

The view array x is used only temporarily and hence can be region allocated.

Definition at line 60 of file bool-lq.hpp.


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