Generated on Mon Aug 25 11:35:51 2008 for Gecode by doxygen 1.5.6

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

#include <count.hh>

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

List of all members.


Detailed Description

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

Propagator for counting views (greater or 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 160 of file count.hh.


Public Member Functions

virtual Actorcopy (Space *home, bool share)
 Create copy during cloning.
virtual ExecStatus propagate (Space *home, ModEventDelta med)
 Perform propagation.
virtual Reflection::ActorSpec spec (const Space *home, Reflection::VarMap &m) const
 Specification for this propagator.

Static Public Member Functions

static Support::Symbol ati (void)
 Name of this propagator.
static void post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec)
 Post propagator according to specification.
static ExecStatus post (Space *home, ViewArray< VX > &x, VY y, int c)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\geq c$.

Protected Member Functions

 GqInt (Space *home, bool share, GqInt &p)
 Constructor for cloning p.
 GqInt (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::GqInt< VX, VY >::GqInt ( Space home,
bool  share,
GqInt< VX, VY > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 256 of file int.icc.

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

Constructor for creation.

Definition at line 221 of file int.icc.


Member Function Documentation

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

Create copy during cloning.

Implements Gecode::Actor.

Definition at line 261 of file int.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 291 of file int.icc.

template<class VX, class VY>
Reflection::ActorSpec Gecode::Int::Count::GqInt< VX, VY >::spec ( const Space home,
Reflection::VarMap m 
) const [inline, virtual]

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 273 of file int.icc.

template<class VX, class VY>
Support::Symbol Gecode::Int::Count::GqInt< VX, VY >::ati ( void   )  [inline, static]

Name of this propagator.

Definition at line 267 of file int.icc.

template<class VX, class VY>
void Gecode::Int::Count::GqInt< VX, VY >::post ( Space home,
Reflection::VarMap vars,
const Reflection::ActorSpec spec 
) [inline, static]

Post propagator according to specification.

Definition at line 279 of file int.icc.

template<class VX, class VY>
ExecStatus Gecode::Int::Count::GqInt< VX, VY >::post ( Space home,
ViewArray< VX > &  x,
VY  y,
int  c 
) [inline, static]

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

Definition at line 226 of file int.icc.


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