Generated on Mon May 10 06:46:58 2010 for Gecode by doxygen 1.6.3

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

Propagator for counting views (different from number of equal views) More...

#include <count.hh>

List of all members.

Public Member Functions

 NqView (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\}\neq z+c$.

Protected Member Functions

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

Detailed Description

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

Propagator for counting views (different from 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.

Requires

 #include <gecode/int/count.hh> 

Definition at line 321 of file count.hh.


Constructor & Destructor Documentation

template<class VX , class VY , class VZ , bool shr>
Gecode::Int::Count::NqView< VX, VY, VZ, shr >::NqView ( Space home,
bool  share,
NqView< VX, VY, VZ, shr > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 206 of file view.hpp.

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

Constructor for creation.

Definition at line 190 of file view.hpp.


Member Function Documentation

template<class VX , class VY , class VZ , bool shr>
Actor * Gecode::Int::Count::NqView< VX, VY, VZ, shr >::copy ( Space home,
bool  share 
) [inline, virtual]

Create copy during cloning.

Implements Gecode::Actor.

Definition at line 212 of file view.hpp.

template<class VX , class VY , class VZ , bool shr>
ExecStatus Gecode::Int::Count::NqView< VX, VY, VZ, shr >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 218 of file view.hpp.

template<class VX , class VY , class VZ , bool shr>
ExecStatus Gecode::Int::Count::NqView< VX, VY, VZ, shr >::post ( Home  home,
ViewArray< VX > &  x,
VY  y,
VZ  z,
int  c 
) [inline, static]

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

Definition at line 196 of file view.hpp.


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