Generated on Thu Apr 11 14:00:00 2019 for Gecode by doxygen 1.6.3

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

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

#include <count.hh>

List of all members.

Public Member Functions

 GqView (Home home, ViewArray< VX > &x, VY y, VZ z, int c)
 Constructor for creation.
virtual Actorcopy (Space &home)
 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\}\geq z+c$.

Protected Member Functions

 GqView (Space &home, GqView &p)
 Constructor for cloning p.

Detailed Description

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

Propagator for counting views (greater 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> 

Definition at line 379 of file count.hh.


Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 57 of file view-gq.hpp.

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

Constructor for creation.

Definition at line 38 of file view-gq.hpp.


Member Function Documentation

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

Create copy during cloning.

Implements Gecode::Actor.

Definition at line 62 of file view-gq.hpp.

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

Perform propagation.

Implements Gecode::Propagator.

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

template<class VX , class VY , class VZ , bool shr, bool dom>
ExecStatus Gecode::Int::Count::GqView< VX, VY, VZ, shr, dom >::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\}\geq z+c$.

Definition at line 43 of file view-gq.hpp.


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