Generated on Tue Sep 25 2012 20:53:31 for Gecode by doxygen 1.7.5
Gecode::Int::Linear::NqBoolInt Class Reference

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.
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 $\sum_{i=0}^{|x|-1}x_i \neq c$.

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

Propagator for integer disequal to Boolean sum (cardinality)

Requires


Constructor & Destructor Documentation

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

Constructor for posting.

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

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

Constructor for cloning p.

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


Member Function Documentation

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

Update subscription.

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

Actor * Gecode::Int::Linear::NqBoolInt::copy ( Space home,
bool  share 
) [virtual]

Copy propagator during cloning.

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

PropCost Gecode::Int::Linear::NqBoolInt::cost ( const Space home,
const ModEventDelta med 
) const [virtual]

Cost function (defined as low linear)

Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_VAL >.

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

ExecStatus Gecode::Int::Linear::NqBoolInt::propagate ( Space home,
const ModEventDelta med 
) [virtual]

Perform propagation.

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

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

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

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

size_t Gecode::Int::Linear::NqBoolInt::dispose ( Space home) [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::BinaryPropagator< VX, PC_INT_VAL >.

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


Member Data Documentation

Views not yet subscribed to.

Definition at line 874 of file linear.hh.

Righthandside.

Definition at line 876 of file linear.hh.


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