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. More... | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. More... | |
![]() | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low linear) More... | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. More... | |
![]() | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. More... | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Advise function. More... | |
double | afc (const Space &home) const |
Return the accumlated failure count. More... | |
![]() |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< VX > &x, VY y, int c) |
Post propagator for ![]() | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. More... | |
static void | operator delete (void *p, Space &home) |
No-op for exceptions. More... | |
Protected Member Functions | |
EqInt (Space &home, bool share, EqInt &p) | |
Constructor for cloning p. More... | |
EqInt (Home home, ViewArray< VX > &x, int n_s, VY y, int c) | |
Constructor for creation. More... | |
![]() | |
IntBase (Space &home, bool share, IntBase &p) | |
Constructor for cloning p. More... | |
IntBase (Home home, ViewArray< VX > &x, int n_s, VY y, int c) | |
Constructor for creation. More... | |
![]() | |
Propagator (Home home) | |
Constructor for posting. More... | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. More... | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. More... | |
Additional Inherited Members | |
![]() | |
ViewArray< VX > | x |
Views still to count. More... | |
int | n_s |
Views from x[0] ... x[n_s-1] have subscriptions. More... | |
VY | y |
View to compare to. More... | |
int | c |
Number of views which are equal and have been eliminated. More... | |
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
|
inlineprotected |
Constructor for cloning p.
Definition at line 80 of file int-eq.hpp.
|
inlineprotected |
Constructor for creation.
Definition at line 42 of file int-eq.hpp.
|
virtual |
|
virtual |
|
static |
Post propagator for .
Definition at line 47 of file int-eq.hpp.