Propagator for successors/predecessors channelling More...
#include <channel.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as PC_QUADRATIC_HI) | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< CachedView< View > > &x, ViewArray< CachedView< View > > &y) |
Post propagator for ![]() | |
Protected Member Functions | |
ChannelSet (Space &home, bool share, ChannelSet &p) | |
Constructor for cloning p. | |
ChannelSet (Home home, ViewArray< CachedView< View > > &, ViewArray< CachedView< View > > &) | |
Constructor for posting. | |
Protected Attributes | |
ViewArray< CachedView< View > > | xs |
SetViews, ![]() ![]() | |
ViewArray< CachedView< View > > | ys |
SetViews, ![]() ![]() |
Propagator for successors/predecessors channelling
Implements channelling constraints between 2 sequences of SetVars. For SetVars and SetVars
it propagates the constraint
.
is the set of successors of
, and
is the set of predecessors of
.
Requires
#include <gecode/set/int.hh>
Definition at line 224 of file channel.hh.
Gecode::Set::Channel::ChannelSet< View >::ChannelSet | ( | Space & | home, |
bool | share, | ||
ChannelSet< View > & | p | ||
) | [inline, protected] |
Gecode::Set::Channel::ChannelSet< View >::ChannelSet | ( | Home | home, |
ViewArray< CachedView< View > > & | xs0, | ||
ViewArray< CachedView< View > > & | ys0 | ||
) | [inline, protected] |
Actor * Gecode::Set::Channel::ChannelSet< View >::copy | ( | Space & | home, |
bool | share | ||
) | [virtual] |
PropCost Gecode::Set::Channel::ChannelSet< View >::cost | ( | const Space & | home, |
const ModEventDelta & | med | ||
) | const [virtual] |
Cost function (defined as PC_QUADRATIC_HI)
Implements Gecode::Propagator.
size_t Gecode::Set::Channel::ChannelSet< View >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
ExecStatus Gecode::Set::Channel::ChannelSet< View >::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
ExecStatus Gecode::Set::Channel::ChannelSet< View >::post | ( | Home | home, |
ViewArray< CachedView< View > > & | x, | ||
ViewArray< CachedView< View > > & | y | ||
) | [inline, static] |
ViewArray<CachedView<View> > Gecode::Set::Channel::ChannelSet< View >::xs [protected] |
SetViews, reflects the successors of
.
Definition at line 227 of file channel.hh.
ViewArray<CachedView<View> > Gecode::Set::Channel::ChannelSet< View >::ys [protected] |
SetViews, reflects the predecessors of
.
Definition at line 229 of file channel.hh.