Generated on Sat Aug 25 2012 15:53:12 for Gecode by doxygen 1.7.5
Gecode::Int::Count::LqView Class Reference

Propagator for counting views (less or equal to number of equal views) More...

#include <count.hh>

List of all members.

Public Member Functions

 LqView (Home home, ViewArray< VX > &x, VY y, VZ z, int c)
 Constructor for creation.
virtual Actorcopy (Space &home, bool share)
 Create copy during cloning.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< VX > &x, VY y, VZ z, int c)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\leq z+c$.

Protected Member Functions

 LqView (Space &home, bool share, LqView &p)
 Constructor for cloning p.

Detailed Description

Propagator for counting views (less or equal to number of equal views)

Not all combinations of views are possible. The types VX and VY must be either equal, or VY must be ConstIntView, ZeroIntView, or IntSet.

Requires

 #include <gecode/int/count.hh> 

Constructor & Destructor Documentation

Gecode::Int::Count::LqView::LqView ( Space home,
bool  share,
LqView p 
) [protected]

Constructor for cloning p.

Gecode::Int::Count::LqView::LqView ( Home  home,
ViewArray< VX > &  x,
VY  y,
VZ  z,
int  c 
) [inline]

Constructor for creation.

Definition at line 42 of file view-lq.hpp.


Member Function Documentation

Actor * Gecode::Int::Count::LqView::copy ( Space home,
bool  share 
) [virtual]

Create copy during cloning.

Definition at line 68 of file view-lq.hpp.

ExecStatus Gecode::Int::Count::LqView::propagate ( Space home,
const ModEventDelta med 
) [virtual]

Perform propagation.

Definition at line 74 of file view-lq.hpp.

ExecStatus Gecode::Int::Count::LqView::post ( Home  home,
ViewArray< VX > &  x,
VY  y,
VZ  z,
int  c 
) [static]

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\leq z+c$.

Definition at line 48 of file view-lq.hpp.


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