Propagator for counting views (equal integer to number of equal views) More...
#include <count.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool share) |
Create copy during cloning. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< VX > &x, VY y, int c) |
Post propagator for ![]() | |
Protected Member Functions | |
EqInt (Space &home, bool share, EqInt &p) | |
Constructor for cloning p. | |
EqInt (Home home, ViewArray< VX > &x, int n_s, VY y, int c) | |
Constructor for creation. |
Propagator for counting views (equal integer 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, ZeroIntView, or IntSet.
Requires
#include <gecode/int/count.hh>
Constructor for cloning p.
Gecode::Int::Count::EqInt::EqInt | ( | Home | home, |
ViewArray< VX > & | x, | ||
int | n_s, | ||
VY | y, | ||
int | c | ||
) | [inline, protected] |
Constructor for creation.
Definition at line 42 of file int-eq.hpp.
Create copy during cloning.
Definition at line 85 of file int-eq.hpp.
ExecStatus Gecode::Int::Count::EqInt::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
Perform propagation.
Definition at line 91 of file int-eq.hpp.
ExecStatus Gecode::Int::Count::EqInt::post | ( | Home | home, |
ViewArray< VX > & | x, | ||
VY | y, | ||
int | c | ||
) | [static] |
Post propagator for .
Definition at line 47 of file int-eq.hpp.