Gecode::Int::Count::NqInt< VX, VY > Class Template Reference
[Integer propagators]
#include <count.hh>
Inherits Gecode::BinaryPropagator< VX, PC_INT_DOM >.
Detailed Description
template<class VX, class VY>
class Gecode::Int::Count::NqInt< VX, VY >
Propagator for counting views (not equal integer to number of equal views)
Not all combinations of views are possible. The types VX and VY must be either equal, or VY must be ConstIntView.
Requires
#include "gecode/int/count.hh"
Definition at line 191 of file count.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (void) const |
Cost function (defined as PC_LINEAR_LO). | |
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< VX > &x, VY y, int c) |
Post propagator for . | |
Protected Member Functions | |
bool | resubscribe (Space *home, VX &z) |
Update subscription. | |
NqInt (Space *home, ViewArray< VX > &x, VY y, int c) | |
Constructor for posting. | |
NqInt (Space *home, bool share, NqInt &p) | |
Constructor for cloning p. | |
Protected Attributes | |
ViewArray< VX > | x |
Views not yet subscribed to. | |
VY | y |
View to compare with. | |
int | c |
Righthandside. |
Constructor & Destructor Documentation
|
Constructor for posting.
|
|
Constructor for cloning p.
|
Member Function Documentation
|
Update subscription.
|
|
Copy propagator during cloning.
Implements Gecode::Actor. |
|
Cost function (defined as PC_LINEAR_LO).
Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_DOM >. |
|
Perform propagation.
Implements Gecode::Propagator. |
|
Post propagator for .
|
|
Delete propagator and return its size.
Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_DOM >. |
Member Data Documentation
|
Views not yet subscribed to.
|
|
View to compare with.
|
|
Righthandside.
|
The documentation for this class was generated from the following files:
- gecode/int/count.hh (Revision: 3684)
- gecode/int/count/int.icc (Revision: 3538)