Generated on Wed Jan 4 17:49:20 2006 for Gecode by doxygen 1.4.6

Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr > Class Template Reference
[Integer propagators]

#include <count.hh>

Inherits Gecode::Int::Count::Base< VX, VY, VZ, Rel, shr >< VX, VY, VZ, Rel, shr >.

List of all members.


Detailed Description

template<class VX, class VY, class VZ, class Rel, bool shr>
class Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr >

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.

Can be used with RelEqBnd (bounds-consistent) or RelEqDom (domain-consistent) as type for Rel.

Requires

 #include "int/count.hh" 

Definition at line 156 of file count.hh.

Public Member Functions

 Lq (Space *home, ViewArray< VX > &x, VY y, VZ z, int c)
 Constructor for creation.
virtual Actorcopy (Space *home, bool shr)
 Create copy during cloning.
virtual ExecStatus propagate (Space *home)
 Perform propagation.

Static Public Member Functions

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

Protected Member Functions

 Lq (Space *home, bool shr, Lq &p)
 Constructor for cloning p.


Constructor & Destructor Documentation

template<class VX, class VY, class VZ, class Rel, bool shr>
Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr >::Lq Space home,
bool  shr,
Lq< VX, VY, VZ, Rel, shr > &  p
[protected]
 

Constructor for cloning p.

template<class VX, class VY, class VZ, class Rel, bool shr>
Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr >::Lq Space home,
ViewArray< VX > &  x,
VY  y,
VZ  z,
int  c
[inline]
 

Constructor for creation.

Definition at line 213 of file count.icc.


Member Function Documentation

template<class VX, class VY, class VZ, class Rel, bool shr>
Actor * Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr >::copy Space home,
bool  shr
[virtual]
 

Create copy during cloning.

Implements Gecode::Actor.

Definition at line 236 of file count.icc.

template<class VX, class VY, class VZ, class Rel, bool shr>
ExecStatus Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 242 of file count.icc.

template<class VX, class VY, class VZ, class Rel, bool shr>
ExecStatus Gecode::Int::Count::Lq< VX, VY, VZ, Rel, shr >::post Space home,
ViewArray< VX > &  x,
VY  y,
VZ  z,
int  c
[static]
 

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

Definition at line 219 of file count.icc.


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