Generated on Tue Sep 25 2012 20:53:29 for Gecode by doxygen 1.7.5
Gecode::Int::Count::EqInt Class Reference

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

#include <count.hh>

List of all members.

Public Member Functions

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, int c)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}=c$.

Protected Member Functions

 EqInt (Space &home, bool share, EqInt &p)
 Constructor for cloning p.
 EqInt (Home home, ViewArray< VX > &x, int n_s, VY y, int c)
 Constructor for creation.

Detailed Description

Propagator for counting views (equal integer 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::EqInt::EqInt ( Space home,
bool  share,
EqInt p 
) [protected]

Constructor for cloning p.

Gecode::Int::Count::EqInt::EqInt ( Home  home,
ViewArray< VX > &  x,
int  n_s,
VY  y,
int  c 
) [inline, protected]

Constructor for creation.

Definition at line 42 of file int-eq.hpp.


Member Function Documentation

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

Create copy during cloning.

Definition at line 85 of file int-eq.hpp.

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

Perform propagation.

Definition at line 91 of file int-eq.hpp.

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

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

Definition at line 47 of file int-eq.hpp.


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