Membership propagator. More...
#include <member.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &, const ModEventDelta &med) const |
Cost function. | |
virtual Propagator * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< View > &x, View y) |
Post propagator for ![]() | |
static ExecStatus | post (Home home, ValSet &vs, ViewArray< View > &x, View y) |
Post propagator for ![]() | |
Protected Member Functions | |
void | eliminate (Space &home) |
Eliminate views from x that are not equal to y or ar subsumed by vs. | |
Prop (Home home, ValSet &vs, ViewArray< View > &x, View y) | |
Constructor for posting. | |
Prop (Space &home, bool share, Prop< View > &p) | |
Constructor for cloning p. | |
Static Protected Member Functions | |
static void | add (Space &home, ValSet &vs, ViewArray< View > &x) |
Add values of assigned views in x to value set va. | |
Protected Attributes | |
ValSet | vs |
Value set storing the values of already assigned views. |
void Gecode::Int::Member::Prop::eliminate | ( | Space & | home | ) | [inline, protected] |
PropCost Gecode::Int::Member::Prop::cost | ( | const Space & | , |
const ModEventDelta & | med | ||
) | const [virtual] |
Cost function.
Reimplemented from Gecode::NaryOnePropagator< View, PC_INT_DOM >.
Propagator * Gecode::Int::Member::Prop::copy | ( | Space & | home, |
bool | share | ||
) | [virtual] |
Copy propagator during cloning.
Reimplemented in Gecode::Int::Member::ReProp.
ExecStatus Gecode::Int::Member::Prop::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
Perform propagation.
Reimplemented in Gecode::Int::Member::ReProp.
ExecStatus Gecode::Int::Member::Prop::post | ( | Home | home, |
ViewArray< View > & | x, | ||
View | y | ||
) | [inline, static] |
ExecStatus Gecode::Int::Member::Prop::post | ( | Home | home, |
ValSet & | vs, | ||
ViewArray< View > & | x, | ||
View | y | ||
) | [inline, static] |
size_t Gecode::Int::Member::Prop::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::NaryOnePropagator< View, PC_INT_DOM >.
Reimplemented in Gecode::Int::Member::ReProp.
ValSet Gecode::Int::Member::Prop::vs [protected] |