Gecode::Set::Int::Weights Class Reference
[Set propagators]
#include <int.hh>
Inherits Gecode::Propagator.
Detailed Description
Propagator for weight of a setRequires
#include "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 | ~Weights (void) |
Destructor. | |
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. |
|
Destructor.
Definition at line 43 of file weights.cc. |
Member Function Documentation
|
Copy propagator during cloning.
Implements Gecode::Actor. Definition at line 49 of file weights.cc. |
|
Cost function (defined as PC_LINEAR_LO).
Implements Gecode::Propagator. Definition at line 39 of file weights.cc. |
|
Perform propagation.
Implements Gecode::Propagator. Definition at line 94 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:
- set/int.hh (Revision: 2652)
- set/int/weights.cc (Revision: 2407)
- set/int/weights.icc (Revision: 2407)