Baseclass for count propagators (integer) More...
#include <count.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low linear) | |
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. |
Baseclass for count propagators (integer)
Constructor for cloning p.
Gecode::Int::Count::IntBase::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.
PropCost Gecode::Int::Count::IntBase::cost | ( | const Space & | home, |
const ModEventDelta & | med | ||
) | const [virtual] |
Cost function (defined as low linear)
Implements Gecode::Propagator.
Definition at line 74 of file int-base.hpp.
size_t Gecode::Int::Count::IntBase::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 54 of file int-base.hpp.
ViewArray<VX> Gecode::Int::Count::IntBase::x [protected] |
int Gecode::Int::Count::IntBase::n_s [protected] |
VY Gecode::Int::Count::IntBase::y [protected] |
int Gecode::Int::Count::IntBase::c [protected] |