Gecode::Int::Member::Prop< View > Class Template Reference
[Integer propagators]
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. |
Detailed Description
template<class View>
class Gecode::Int::Member::Prop< View >
Membership propagator.
Requires
#include <gecode/int/member.hh>
Definition at line 58 of file member.hh.
Constructor & Destructor Documentation
template<class View >
Gecode::Int::Member::Prop< View >::Prop | ( | Home | home, | |
ValSet & | vs, | |||
ViewArray< View > & | x, | |||
View | y | |||
) | [inline, protected] |
template<class View >
Gecode::Int::Member::Prop< View >::Prop | ( | Space & | home, | |
bool | share, | |||
Prop< View > & | p | |||
) | [inline, protected] |
Member Function Documentation
template<class View >
void Gecode::Int::Member::Prop< View >::add | ( | Space & | home, | |
ValSet & | vs, | |||
ViewArray< View > & | x | |||
) | [inline, static, protected] |
template<class View >
void Gecode::Int::Member::Prop< View >::eliminate | ( | Space & | home | ) | [inline, protected] |
template<class View >
PropCost Gecode::Int::Member::Prop< View >::cost | ( | const Space & | , | |
const ModEventDelta & | med | |||
) | const [inline, virtual] |
Cost function.
Reimplemented from Gecode::NaryOnePropagator< View, PC_INT_DOM >.
template<class View >
Propagator * Gecode::Int::Member::Prop< View >::copy | ( | Space & | home, | |
bool | share | |||
) | [inline, virtual] |
Copy propagator during cloning.
Implements Gecode::Actor.
Reimplemented in Gecode::Int::Member::ReProp< View >.
template<class View >
ExecStatus Gecode::Int::Member::Prop< View >::propagate | ( | Space & | home, | |
const ModEventDelta & | med | |||
) | [inline, virtual] |
Perform propagation.
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Member::ReProp< View >.
template<class View >
ExecStatus Gecode::Int::Member::Prop< View >::post | ( | Home | home, | |
ViewArray< View > & | x, | |||
View | y | |||
) | [inline, static] |
template<class View >
ExecStatus Gecode::Int::Member::Prop< View >::post | ( | Home | home, | |
ValSet & | vs, | |||
ViewArray< View > & | x, | |||
View | y | |||
) | [inline, static] |
template<class View >
size_t Gecode::Int::Member::Prop< View >::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< View >.
Member Data Documentation
template<class View>
ValSet Gecode::Int::Member::Prop< View >::vs [protected] |
The documentation for this class was generated from the following files:
- gecode/int/member.hh (Revision: 12330)
- gecode/int/member/prop.hpp (Revision: 12335)