Membership propagator. More...
#include <member.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &, const ModEventDelta &med) const |
Cost function. More... | |
virtual Propagator * | copy (Space &home, bool share) |
Copy propagator during cloning. More... | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. More... | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. More... | |
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. More... | |
Prop (Home home, ValSet &vs, ViewArray< View > &x, View y) | |
Constructor for posting. More... | |
Prop (Space &home, bool share, Prop< View > &p) | |
Constructor for cloning p. More... | |
![]() | |
NaryOnePropagator (Space &home, bool share, NaryOnePropagator &p) | |
Constructor for cloning p. More... | |
NaryOnePropagator (Space &home, bool share, Propagator &p, ViewArray< View > &x, View y) | |
Constructor for rewriting p during cloning. More... | |
NaryOnePropagator (Home home, ViewArray< View > &x, View y) | |
Constructor for creation. More... | |
![]() | |
Propagator (Home home) | |
Constructor for posting. More... | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. More... | |
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. More... | |
Protected Attributes | |
ValSet | vs |
Value set storing the values of already assigned views. More... | |
![]() | |
ViewArray< View > | x |
Array of views. More... | |
View | y |
Single view. More... | |
Membership propagator.
Requires
|
inlineprotected |
|
inlineprotected |
|
inlinestaticprotected |
|
inlineprotected |
|
virtual |
Cost function.
Reimplemented from Gecode::NaryOnePropagator< View, PC_INT_DOM >.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Reimplemented in Gecode::Int::Member::ReProp< View, rm >.
|
virtual |
Perform propagation.
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Member::ReProp< View, rm >.
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::NaryOnePropagator< View, PC_INT_DOM >.
Reimplemented in Gecode::Int::Member::ReProp< View, rm >.
|
protected |