Generated on Tue Apr 18 10:23:46 2017 for Gecode by doxygen 1.6.3

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

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

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, ZeroIntView, or IntSet.

Requires

 #include <gecode/int/count.hh> 

Definition at line 173 of file count.hh.


Constructor & Destructor Documentation

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

Constructor for cloning p.

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

template<class VX , class VY >
Gecode::Int::Count::EqInt< VX, VY >::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

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

Create copy during cloning.

Implements Gecode::Actor.

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

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

Perform propagation.

Implements Gecode::Propagator.

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

template<class VX , class VY >
ExecStatus Gecode::Int::Count::EqInt< VX, VY >::post ( Home  home,
ViewArray< VX > &  x,
VY  y,
int  c 
) [inline, 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: