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

Gecode::Int::Count::BaseInt< VX, VY > Class Template Reference

#include <count.hh>

Inherits Gecode::Propagator.

Inherited by Gecode::Int::Count::EqInt< VX, VY >, Gecode::Int::Count::GqInt< VX, VY >, and Gecode::Int::Count::LqInt< VX, VY >.

List of all members.


Detailed Description

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

Baseclass for count propagators (integer).

Definition at line 89 of file count.hh.


Public Member Functions

virtual PropCost cost (ModEventDelta med) const
 Cost function (defined as dynamic PC_LINEAR_LO).
virtual size_t dispose (Space *home)
 Delete propagator and return its size.

Protected Member Functions

 BaseInt (Space *home, bool share, BaseInt &p)
 Constructor for cloning p.
 BaseInt (Space *home, ViewArray< VX > &x, int n_s, VY y, int c)
 Constructor for creation.
Reflection::ActorSpec spec (const Space *home, Reflection::VarMap &m, const Support::Symbol &name) const
 Specification for this propagator.

Protected Attributes

ViewArray< VX > x
 Views still to count.
int n_s
 Views from x[0] ... x[n_s-1] have subscriptions.
VY y
 View to compare to.
int c
 Number of views which are equal and have been eliminated.

Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 67 of file int.icc.

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

Constructor for creation.

Definition at line 47 of file int.icc.


Member Function Documentation

template<class VX, class VY>
Reflection::ActorSpec Gecode::Int::Count::BaseInt< VX, VY >::spec ( const Space home,
Reflection::VarMap m,
const Support::Symbol name 
) const [inline, protected]

Specification for this propagator.

Definition at line 81 of file int.icc.

template<class VX, class VY>
PropCost Gecode::Int::Count::BaseInt< VX, VY >::cost ( ModEventDelta  med  )  const [inline, virtual]

Cost function (defined as dynamic PC_LINEAR_LO).

Implements Gecode::Propagator.

Definition at line 75 of file int.icc.

template<class VX, class VY>
size_t Gecode::Int::Count::BaseInt< VX, VY >::dispose ( Space home  )  [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 57 of file int.icc.


Member Data Documentation

template<class VX, class VY>
ViewArray<VX> Gecode::Int::Count::BaseInt< VX, VY >::x [protected]

Views still to count.

Definition at line 92 of file count.hh.

template<class VX, class VY>
int Gecode::Int::Count::BaseInt< VX, VY >::n_s [protected]

Views from x[0] ... x[n_s-1] have subscriptions.

Definition at line 94 of file count.hh.

template<class VX, class VY>
VY Gecode::Int::Count::BaseInt< VX, VY >::y [protected]

View to compare to.

Definition at line 96 of file count.hh.

template<class VX, class VY>
int Gecode::Int::Count::BaseInt< VX, VY >::c [protected]

Number of views which are equal and have been eliminated.

Definition at line 98 of file count.hh.


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