Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr > Class Template Reference
[Integer propagators]
#include <count.hh>
Inherits Gecode::Int::Count::Base< VX, VY, VZ, Rel, shr >< VX, VY, VZ, Rel, shr >.
Detailed Description
template<class VX, class VY, class VZ, class Rel, bool shr>
class Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr >
Propagator for counting views (equal 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.
Can be used with RelEqBnd (bounds-consistent) or RelEqDom (domain-consistent) as type for Rel.
Requires
#include "gecode/int/count.hh"
Definition at line 84 of file count.hh.
Public Member Functions | |
Eq (Space *home, ViewArray< VX > &x, VY y, VZ z, int c) | |
Constructor for creation. | |
virtual Actor * | copy (Space *home, bool shr) |
Create copy during cloning. | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, ViewArray< VX > &x, VY y, VZ z, int c) |
Post propagator for ![]() | |
Protected Member Functions | |
Eq (Space *home, bool shr, Eq &p) | |
Constructor for cloning p. |
Constructor & Destructor Documentation
template<class VX, class VY, class VZ, class Rel, bool shr>
Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr >::Eq | ( | Space * | home, | |
bool | shr, | |||
Eq< VX, VY, VZ, Rel, shr > & | p | |||
) | [protected] |
Constructor for cloning p.
template<class VX, class VY, class VZ, class Rel, bool shr>
Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr >::Eq | ( | Space * | home, | |
ViewArray< VX > & | x, | |||
VY | y, | |||
VZ | z, | |||
int | c | |||
) | [inline] |
Member Function Documentation
template<class VX, class VY, class VZ, class Rel, bool shr>
Actor * Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr >::copy | ( | Space * | home, | |
bool | shr | |||
) | [virtual] |
template<class VX, class VY, class VZ, class Rel, bool shr>
ExecStatus Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr >::propagate | ( | Space * | home | ) | [virtual] |
template<class VX, class VY, class VZ, class Rel, bool shr>
ExecStatus Gecode::Int::Count::Eq< VX, VY, VZ, Rel, shr >::post | ( | Space * | home, | |
ViewArray< VX > & | x, | |||
VY | y, | |||
VZ | z, | |||
int | c | |||
) | [static] |
The documentation for this class was generated from the following files:
- gecode/int/count.hh (Revision: 3246)
- gecode/int/count/count.icc (Revision: 3246)