Gecode::Set::Int::Weights Class Reference
[Set propagators]
#include <int.hh>
Inherits Gecode::Propagator.
Detailed Description
Propagator for weight of a setRequires
#include "gecode/set/int.hh"
Definition at line 183 of file int.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
virtual PropCost | cost (void) const |
Cost function (defined as PC_LINEAR_LO). | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, const IntArgs &elements, const IntArgs &weights, SetView x, Gecode::Int::IntView y) |
Post propagator for ![]() | |
Protected Member Functions | |
Weights (Space *home, bool share, Weights &p) | |
Constructor for cloning p. | |
Weights (Space *home, const IntArgs &, const IntArgs &, SetView, Gecode::Int::IntView) | |
Constructor for posting. | |
Protected Attributes | |
Support::SharedArray< int > | elements |
List of elements in the upper bound. | |
Support::SharedArray< int > | weights |
Weights for the elements in the upper bound. | |
SetView | x |
The set view. | |
Gecode::Int::IntView | y |
The integer view. |
Constructor & Destructor Documentation
|
Constructor for cloning p.
Definition at line 149 of file weights.icc. |
|
Constructor for posting.
Definition at line 135 of file weights.icc. |
Member Function Documentation
|
Copy propagator during cloning.
Implements Gecode::Actor. Definition at line 53 of file weights.cc. |
|
Cost function (defined as PC_LINEAR_LO).
Implements Gecode::Propagator. Definition at line 39 of file weights.cc. |
|
Delete propagator and return its size.
Reimplemented from Gecode::Actor. Definition at line 44 of file weights.cc. |
|
Perform propagation.
Implements Gecode::Propagator. Definition at line 99 of file weights.cc. |
|
Post propagator for
Definition at line 158 of file weights.icc. |
Member Data Documentation
|
List of elements in the upper bound.
|
|
Weights for the elements in the upper bound.
|
|
The set view.
|
|
The integer view.
|
The documentation for this class was generated from the following files:
- gecode/set/int.hh (Revision: 3246)
- gecode/set/int/weights.cc (Revision: 3413)
- gecode/set/int/weights.icc (Revision: 3509)