Propagator for weight of a set More...
#include <int.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool) |
Copy propagator during cloning. More... | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as PC_LINEAR_LO) More... | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. More... | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. 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... | |
![]() |
Static Public Member Functions | |
static ExecStatus | post (Home home, const SharedArray< int > &elements, const SharedArray< int > &weights, View x, Gecode::Int::IntView y) |
Post propagator for ![]() | |
![]() | |
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... | |
Protected Member Functions | |
Weights (Space &home, bool share, Weights &p) | |
Constructor for cloning p. More... | |
Weights (Home home, const SharedArray< int > &, const SharedArray< int > &, View, Gecode::Int::IntView) | |
Constructor for posting. 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 | |
SharedArray< int > | elements |
List of elements in the upper bound. More... | |
SharedArray< int > | weights |
Weights for the elements in the upper bound. More... | |
View | x |
The set view. More... | |
Gecode::Int::IntView | y |
The integer view. More... | |
Propagator for weight of a set
Requires
|
inlineprotected |
Constructor for cloning p.
Definition at line 163 of file weights.hpp.
|
inlineprotected |
Constructor for posting.
Definition at line 150 of file weights.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 209 of file weights.hpp.
|
virtual |
Cost function (defined as PC_LINEAR_LO)
Implements Gecode::Propagator.
Definition at line 191 of file weights.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 197 of file weights.hpp.
|
virtual |
|
inlinestatic |
Post propagator for .
Definition at line 173 of file weights.hpp.
|
protected |
|
protected |
|
protected |
|
protected |