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

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

Baseclass for count propagators (integer). More...

#include <count.hh>

List of all members.

Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low linear).
virtual void reschedule (Space &home)
 Schedule function.
virtual size_t dispose (Space &home)
 Delete propagator and return its size.

Protected Member Functions

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

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.

Detailed Description

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

Baseclass for count propagators (integer).

Definition at line 139 of file count.hh.


Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 66 of file int-base.hpp.

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

Constructor for creation.

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


Member Function Documentation

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

Cost function (defined as low linear).

Implements Gecode::Propagator.

Definition at line 74 of file int-base.hpp.

template<class VX , class VY >
void Gecode::Int::Count::IntBase< VX, VY >::reschedule ( Space home  )  [inline, virtual]

Schedule function.

Implements Gecode::Propagator.

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

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

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 54 of file int-base.hpp.


Member Data Documentation

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

Views still to count.

Definition at line 142 of file count.hh.

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

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

Definition at line 144 of file count.hh.

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

View to compare to.

Definition at line 146 of file count.hh.

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

Number of views which are equal and have been eliminated.

Definition at line 148 of file count.hh.


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