Gecode::Set::Distinct::Distinct Class Reference
[Set propagators]
#include <distinct.hh>
Inherits Gecode::NaryPropagator< View, pc >< Gecode::Set::SetView, PC_SET_ANY >.
Detailed Description
Propagator for the n-ary distinct constraint with fixed cardinalitiesRequires
#include "gecode/set/distinct.hh"
Definition at line 67 of file distinct.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, ViewArray< SetView > x, unsigned int c) |
Post propagator for ![]() ![]() | |
Protected Member Functions | |
Distinct (Space *home, bool share, Distinct &p) | |
Constructor for cloning p. | |
Distinct (Space *home, ViewArray< SetView > &, unsigned int) | |
Constructor for posting. | |
Protected Attributes | |
Binomial | bin |
Binomial coefficients table. | |
unsigned int | c |
Cardinality of the sets. |
Constructor & Destructor Documentation
Member Function Documentation
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 59 of file distinct.cc.
ExecStatus Gecode::Set::Distinct::Distinct::propagate | ( | Space * | home | ) | [virtual] |
ExecStatus Gecode::Set::Distinct::Distinct::post | ( | Space * | home, | |
ViewArray< SetView > | x, | |||
unsigned int | c | |||
) | [inline, static] |
size_t Gecode::Set::Distinct::Distinct::dispose | ( | Space * | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::NaryPropagator< View, pc >.
Definition at line 51 of file distinct.icc.
Member Data Documentation
Binomial Gecode::Set::Distinct::Distinct::bin [protected] |
unsigned int Gecode::Set::Distinct::Distinct::c [protected] |
The documentation for this class was generated from the following files:
- gecode/set/distinct.hh (Revision: 3304)
- gecode/set/distinct/distinct.cc (Revision: 3188)
- gecode/set/distinct/distinct.icc (Revision: 3304)