Gecode::Int::Linear::NqBoolInt< VX > Class Template Reference
[Integer propagators]
#include <linear.hh>
Inherits BinaryPropagator< VX, PC_INT_VAL >.
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 1101 of file linear.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function (defined as PC_LINEAR_LO). | |
virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
Perform propagation. | |
virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
Return specification for this propagator given a variable map m. | |
Static Public Member Functions | |
static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
Post propagator according to specification. | |
static Support::Symbol | ati (void) |
Mangled propagator name. | |
static ExecStatus | post (Space *home, ViewArray< VX > &b, int c) |
Post propagator for . | |
Protected Member Functions | |
bool | resubscribe (Space *home, VX &y) |
Update subscription. | |
NqBoolInt (Space *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. |
Constructor & Destructor Documentation
template<class VX>
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt | ( | Space * | home, | |
ViewArray< VX > & | b, | |||
int | c | |||
) | [inline, protected] |
template<class VX>
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt | ( | Space * | home, | |
bool | share, | |||
NqBoolInt< VX > & | p | |||
) | [inline, protected] |
Member Function Documentation
template<class VX>
bool Gecode::Int::Linear::NqBoolInt< VX >::resubscribe | ( | Space * | home, | |
VX & | y | |||
) | [inline, protected] |
template<class VX>
Actor * Gecode::Int::Linear::NqBoolInt< VX >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 680 of file bool-int.icc.
template<class VX>
PropCost Gecode::Int::Linear::NqBoolInt< VX >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function (defined as PC_LINEAR_LO).
Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_VAL >.
Definition at line 686 of file bool-int.icc.
template<class VX>
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
template<class VX>
Reflection::ActorSpec Gecode::Int::Linear::NqBoolInt< VX >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
Return specification for this propagator given a variable map m.
Reimplemented from Gecode::Actor.
Definition at line 698 of file bool-int.icc.
template<class VX>
void Gecode::Int::Linear::NqBoolInt< VX >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
template<class VX>
Support::Symbol Gecode::Int::Linear::NqBoolInt< VX >::ati | ( | void | ) | [inline, static] |
template<class VX>
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::post | ( | Space * | home, | |
ViewArray< VX > & | b, | |||
int | c | |||
) | [inline, static] |
Member Data Documentation
template<class VX>
ViewArray<VX> Gecode::Int::Linear::NqBoolInt< VX >::x [protected] |
template<class VX>
int Gecode::Int::Linear::NqBoolInt< VX >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 7285)
- gecode/int/linear/bool-int.icc (Revision: 6017)