Gecode::Int::Count::BaseInt< VX, VY > Class Template Reference
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 | |
| BaseInt (Space &home, bool share, BaseInt &p) | |
| Constructor for cloning p. | |
| BaseInt (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::BaseInt< VX, VY >
Baseclass for count propagators (integer).
Definition at line 89 of file count.hh.
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] |
template<class VX , class VY >
| Gecode::Int::Count::BaseInt< VX, VY >::BaseInt | ( | Home | home, | |
| ViewArray< VX > & | x, | |||
| int | n_s, | |||
| VY | y, | |||
| int | c | |||
| ) | [inline, protected] |
Member Function Documentation
template<class VX , class VY >
| PropCost Gecode::Int::Count::BaseInt< VX, VY >::cost | ( | const Space & | home, | |
| const ModEventDelta & | med | |||
| ) | const [virtual] |
Cost function (defined as low linear).
Implements Gecode::Propagator.
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.
Member Data Documentation
template<class VX, class VY>
ViewArray<VX> Gecode::Int::Count::BaseInt< VX, VY >::x [protected] |
template<class VX, class VY>
int Gecode::Int::Count::BaseInt< VX, VY >::n_s [protected] |
template<class VX, class VY>
VY Gecode::Int::Count::BaseInt< VX, VY >::y [protected] |
template<class VX, class VY>
int Gecode::Int::Count::BaseInt< VX, VY >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/count.hh (Revision: 10822)
- gecode/int/count/int.hpp (Revision: 10364)
