Gecode::Set::Projection::CardProjection Class Reference
#include <propagator.hh>
Inherits Gecode::Propagator.
Detailed Description
Nary cardinality projection propagator.
Definition at line 93 of file propagator.hh.
Public Member Functions | |
virtual PropCost | cost (void) const |
Cost function. | |
virtual size_t | dispose (Space *home) |
Delete propagator. | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, ViewArray< SetView > &x, Gecode::Int::IntView i, Projector &p) |
Protected Member Functions | |
CardProjection (Space *home, bool share, CardProjection &p) | |
Constructor for cloning p. | |
CardProjection (Space *home, ViewArray< SetView > &x, Gecode::Int::IntView i, Projector &ps) | |
Constructor for creation. | |
Protected Attributes | |
ViewArray< SetView > | x |
Array of views. | |
Gecode::Int::IntView | i |
Integer view for cardinality. | |
Support::SharedArray< PropCond > | pc |
Array of PropConds. | |
Projector | proj |
The projector to propagate. |
Constructor & Destructor Documentation
Gecode::Set::Projection::CardProjection::CardProjection | ( | Space * | home, | |
bool | share, | |||
CardProjection & | p | |||
) | [inline, protected] |
Gecode::Set::Projection::CardProjection::CardProjection | ( | Space * | home, | |
ViewArray< SetView > & | x, | |||
Gecode::Int::IntView | i, | |||
Projector & | ps | |||
) | [inline, protected] |
Member Function Documentation
PropCost Gecode::Set::Projection::CardProjection::cost | ( | void | ) | const [inline, virtual] |
size_t Gecode::Set::Projection::CardProjection::dispose | ( | Space * | home | ) | [inline, virtual] |
ExecStatus Gecode::Set::Projection::CardProjection::propagate | ( | Space * | home | ) | [inline, virtual] |
ExecStatus Gecode::Set::Projection::CardProjection::post | ( | Space * | home, | |
ViewArray< SetView > & | x, | |||
Gecode::Int::IntView | i, | |||
Projector & | p | |||
) | [inline, static] |
Member Data Documentation
ViewArray<SetView> Gecode::Set::Projection::CardProjection::x [protected] |
The documentation for this class was generated from the following files:
- gecode/set/projectors/propagator.hh (Revision: 3544)
- gecode/set/projectors/propagator/card.icc (Revision: 3544)