Generated on Sat Feb 7 2015 02:01:48 for Gecode by doxygen 1.8.9.1
Gecode::Int::Linear::NqBoolInt< VX > Class Template Reference

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

#include <linear.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low linear) More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
virtual size_t dispose (Space &home)
 Delete propagator and return its size. More...
 
- Public Member Functions inherited from Gecode::Propagator
ModEventDelta modeventdelta (void) const
 Return the modification event delta. More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function. More...
 
double afc (const Space &home) const
 Return the accumlated failure count. More...
 
- Public Member Functions inherited from Gecode::Actor

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$. More...
 
- Static Public Member Functions inherited from Gecode::Actor
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 No-op for exceptions. More...
 

Protected Member Functions

bool resubscribe (Space &home, VX &y)
 Update subscription. More...
 
 NqBoolInt (Home home, ViewArray< VX > &b, int c)
 Constructor for posting. More...
 
 NqBoolInt (Space &home, bool share, NqBoolInt< VX > &p)
 Constructor for cloning p. More...
 
- Protected Member Functions inherited from Gecode::BinaryPropagator< VX, PC_INT_VAL >
 BinaryPropagator (Space &home, bool share, BinaryPropagator &p)
 Constructor for cloning p. More...
 
 BinaryPropagator (Home home, VXx0, VXx1)
 Constructor for creation. More...
 
 BinaryPropagator (Space &home, bool share, Propagator &p, VXx0, VXx1)
 Constructor for rewriting p during cloning. More...
 
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting. More...
 
 Propagator (Space &home, bool share, Propagator &p)
 Constructor for cloning p. More...
 
Propagatorfwd (void) const
 Return forwarding pointer during copying. More...
 

Protected Attributes

ViewArray< VX > x
 Views not yet subscribed to. More...
 
int c
 Righthandside. More...
 
- Protected Attributes inherited from Gecode::BinaryPropagator< VX, PC_INT_VAL >
VX x0
 Two views. More...
 
VX x1
 

Detailed Description

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

Propagator for integer disequal to Boolean sum (cardinality)

Requires

Definition at line 869 of file linear.hh.

Constructor & Destructor Documentation

template<class VX >
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt ( Home  home,
ViewArray< VX > &  b,
int  c 
)
inlineprotected

Constructor for posting.

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

template<class VX >
Gecode::Int::Linear::NqBoolInt< VX >::NqBoolInt ( Space home,
bool  share,
NqBoolInt< VX > &  p 
)
inlineprotected

Constructor for cloning p.

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

Member Function Documentation

template<class VX >
bool Gecode::Int::Linear::NqBoolInt< VX >::resubscribe ( Space home,
VX &  y 
)
inlineprotected

Update subscription.

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

template<class VX >
Actor * Gecode::Int::Linear::NqBoolInt< VX >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

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

template<class VX >
PropCost Gecode::Int::Linear::NqBoolInt< VX >::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.

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

Perform propagation.

Implements Gecode::Propagator.

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

template<class VX >
ExecStatus Gecode::Int::Linear::NqBoolInt< VX >::post ( Home  home,
ViewArray< VX > &  b,
int  c 
)
inlinestatic

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

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

template<class VX >
size_t Gecode::Int::Linear::NqBoolInt< VX >::dispose ( Space home)
inlinevirtual

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

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

Views not yet subscribed to.

Definition at line 874 of file linear.hh.

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

Righthandside.

Definition at line 876 of file linear.hh.


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