Generated on Mon Jul 6 18:09:35 2009 for Gecode by doxygen 1.5.9

Gecode::Int::Linear::NqBoolInt< VX > Class Template Reference
[Integer propagators]

Propagator for integer disequal to Boolean sum (cardinality) More...

#include <linear.hh>

List of all members.

Public Member Functions

virtual Actorcopy (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.

Static Public Member Functions

static ExecStatus post (Space &home, ViewArray< VX > &b, int c)
 Post propagator for $\sum_{i=0}^{|x|-1}x_i \neq c$.

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.


Detailed Description

template<class VX>
class Gecode::Int::Linear::NqBoolInt< VX >

Propagator for integer disequal to Boolean sum (cardinality)

Requires

Definition at line 934 of file linear.hh.


Constructor & Destructor Documentation

template<class VX >
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt ( Space home,
ViewArray< VX > &  b,
int  c 
) [inline, protected]

Constructor for posting.

Definition at line 516 of file bool-int.hpp.

template<class VX >
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt ( Space home,
bool  share,
NqBoolInt< VX > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 526 of file bool-int.hpp.


Member Function Documentation

template<class VX >
bool Gecode::Int::Linear::NqBoolInt< VX >::resubscribe ( Space home,
VX &  y 
) [inline, protected]

Update subscription.

Definition at line 584 of file bool-int.hpp.

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 572 of file bool-int.hpp.

template<class VX >
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 578 of file bool-int.hpp.

template<class VX >
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 609 of file bool-int.hpp.

template<class VX >
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::post ( Space home,
ViewArray< VX > &  b,
int  c 
) [inline, static]

Post propagator for $\sum_{i=0}^{|x|-1}x_i \neq c$.

Definition at line 545 of file bool-int.hpp.


Member Data Documentation

template<class VX>
ViewArray<VX> Gecode::Int::Linear::NqBoolInt< VX >::x [protected]

Views not yet subscribed to.

Definition at line 939 of file linear.hh.

template<class VX>
int Gecode::Int::Linear::NqBoolInt< VX >::c [protected]

Righthandside.

Definition at line 941 of file linear.hh.


The documentation for this class was generated from the following files: