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