Generated on Wed Nov 1 15:05:17 2006 for Gecode by doxygen 1.4.5

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

#include <count.hh>

Inherits Gecode::Int::Count::BaseInt< VX, VY >< VX, VY >.

List of all members.


Detailed Description

template<class VX, class VY>
class Gecode::Int::Count::EqInt< VX, VY >

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.

Requires

 #include "gecode/int/count.hh" 

Definition at line 104 of file count.hh.

Public Member Functions

virtual Actorcopy (Space *home, bool share)
 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, 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 (Space *home, ViewArray< VX > &x, int n_s, VY y, int c)
 Constructor for creation.


Constructor & Destructor Documentation

template<class VX, class VY>
Gecode::Int::Count::EqInt< VX, VY >::EqInt Space home,
bool  share,
EqInt< VX, VY > &  p
[protected]
 

Constructor for cloning p.

template<class VX, class VY>
Gecode::Int::Count::EqInt< VX, VY >::EqInt Space home,
ViewArray< VX > &  x,
int  n_s,
VY  y,
int  c
[inline, protected]
 

Constructor for creation.

Definition at line 70 of file int.icc.


Member Function Documentation

template<class VX, class VY>
Actor * Gecode::Int::Count::EqInt< VX, VY >::copy Space home,
bool  share
[virtual]
 

Create copy during cloning.

Implements Gecode::Actor.

Definition at line 117 of file int.icc.

template<class VX, class VY>
ExecStatus Gecode::Int::Count::EqInt< VX, VY >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 123 of file int.icc.

template<class VX, class VY>
ExecStatus Gecode::Int::Count::EqInt< VX, VY >::post Space 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 75 of file int.icc.


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