Mixed (n+1)-ary propagator. More...
#include <propagator.hpp>
Public Member Functions | |
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... | |
![]() | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med)=0 |
Propagation function. 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... | |
![]() | |
virtual Actor * | copy (Space &home, bool share)=0 |
Create copy. More... | |
Protected Member Functions | |
MixNaryOnePropagator (Space &home, bool share, MixNaryOnePropagator &p) | |
Constructor for cloning p. More... | |
MixNaryOnePropagator (Home home, ViewArray< View0 > &x, View1 y) | |
Constructor for creation. More... | |
MixNaryOnePropagator (Space &home, bool share, Propagator &p, ViewArray< View0 > &x, View1 y) | |
Constructor for rewriting p during cloning. 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... | |
Protected Attributes | |
ViewArray< View0 > | x |
Array of views. More... | |
View1 | y |
Single view. More... | |
Additional Inherited Members | |
![]() | |
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... | |
Mixed (n+1)-ary propagator.
Stores array of views of type View0 with propagation condition pc0 and a single view of type View1 with propagation condition pc1.
If the propagation conditions pc0 or pc1 have the values PC_GEN_NONE, no subscriptions are created.
Definition at line 268 of file propagator.hpp.
|
inlineprotected |
Constructor for cloning p.
Definition at line 664 of file propagator.hpp.
|
protected |
Constructor for creation.
Definition at line 653 of file propagator.hpp.
|
inlineprotected |
Constructor for rewriting p during cloning.
Definition at line 673 of file propagator.hpp.
|
virtual |
Cost function (defined as low linear)
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Bool::NaryOr< VX, VY >, Gecode::Set::RelOp::PartitionN< View0, View1 >, Gecode::Set::RelOp::UnionN< View0, View1 >, Gecode::Int::Channel::LinkMulti, Gecode::Set::RelOp::IntersectionN< View0, View1 >, Gecode::Set::Channel::ChannelBool< View >, and Gecode::Int::NValues::IntBase< VY >.
Definition at line 681 of file propagator.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Reimplemented in Gecode::Int::Bool::NaryOr< VX, VY >, Gecode::Int::NValues::LqInt< VY >, Gecode::Int::Channel::LinkMulti, Gecode::Int::NValues::EqInt< VY >, Gecode::Set::Channel::ChannelBool< View >, and Gecode::Int::NValues::IntBase< VY >.
Definition at line 688 of file propagator.hpp.
|
protected |
Array of views.
Definition at line 271 of file propagator.hpp.
|
protected |
Single view.
Definition at line 273 of file propagator.hpp.