Gecode::Int::Linear::NqBoolInt< VX > Class Template Reference
[Integer propagators]
Propagator for integer disequal to Boolean sum (cardinality) More...
#include <linear.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low linear). | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< VX > &b, int c) |
Post propagator for . | |
Protected Member Functions | |
bool | resubscribe (Space &home, VX &y) |
Update subscription. | |
NqBoolInt (Home home, ViewArray< VX > &b, int c) | |
Constructor for posting. | |
NqBoolInt (Space &home, bool share, NqBoolInt< VX > &p) | |
Constructor for cloning p. | |
Protected Attributes | |
ViewArray< VX > | x |
Views not yet subscribed to. | |
int | c |
Righthandside. |
Detailed Description
template<class VX>
class Gecode::Int::Linear::NqBoolInt< VX >
Propagator for integer disequal to Boolean sum (cardinality)
Requires
#include <gecode/int/linear.hh>
Definition at line 887 of file linear.hh.
Constructor & Destructor Documentation
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt | ( | Home | home, | |
ViewArray< VX > & | b, | |||
int | c | |||
) | [inline, protected] |
Constructor for posting.
Definition at line 362 of file bool-int.hpp.
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt | ( | Space & | home, | |
bool | share, | |||
NqBoolInt< VX > & | p | |||
) | [inline, protected] |
Constructor for cloning p.
Definition at line 379 of file bool-int.hpp.
Member Function Documentation
bool Gecode::Int::Linear::NqBoolInt< VX >::resubscribe | ( | Space & | home, | |
VX & | y | |||
) | [inline, protected] |
Update subscription.
Definition at line 437 of file bool-int.hpp.
Actor * Gecode::Int::Linear::NqBoolInt< VX >::copy | ( | Space & | home, | |
bool | share | |||
) | [inline, virtual] |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 425 of file bool-int.hpp.
PropCost Gecode::Int::Linear::NqBoolInt< VX >::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [inline, virtual] |
Cost function (defined as low linear).
Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_VAL >.
Definition at line 431 of file bool-int.hpp.
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::propagate | ( | Space & | home, | |
const ModEventDelta & | med | |||
) | [inline, virtual] |
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::post | ( | Home | home, | |
ViewArray< VX > & | b, | |||
int | c | |||
) | [inline, static] |
Post propagator for .
Definition at line 398 of file bool-int.hpp.
size_t Gecode::Int::Linear::NqBoolInt< VX >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_VAL >.
Definition at line 372 of file bool-int.hpp.
Member Data Documentation
ViewArray<VX> Gecode::Int::Linear::NqBoolInt< VX >::x [protected] |
int Gecode::Int::Linear::NqBoolInt< VX >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 15137)
- gecode/int/linear/bool-int.hpp (Revision: 15137)