Generated on Thu Mar 16 2017 03:24:32 for Gecode by doxygen 1.8.13
Gecode::Int::Linear::EqBoolInt< VX > Class Template Reference

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

#include <linear.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Create copy during cloning. More...
 
virtual void reschedule (Space &home)
 Schedule function. More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::Int::Linear::LinBoolInt< VX >
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as high unary) 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...
 
double afc (const Space &home) const
 Return the accumlated failure count. More...
 
unsigned int id (void) const
 Return propagator id. More...
 
PropagatorGroup group (void) const
 Return group propagator belongs to. More...
 
void group (PropagatorGroup g)
 Add propagator to group g. More...
 
bool disabled (void) const
 Whether propagator is currently disabled. More...
 
void kill (Space &home)
 Kill propagator. More...
 
void disable (void)
 Disable propagator. More...
 
void enable (void)
 Enable propagator. More...
 
- Public Member Functions inherited from Gecode::Actor
virtual ~Actor (void)
 To avoid warnings. More...
 

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< VX > &x, int c)
 Post propagator for $\sum_{i=0}^{|x|-1}x_i = c$. More...
 
- Static Public Member Functions inherited from Gecode::Actor
static void * operator new (size_t s)
 Not used. More...
 
static void operator delete (void *p)
 Not used. More...
 
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

 EqBoolInt (Space &home, bool share, EqBoolInt &p)
 Constructor for cloning p. More...
 
 EqBoolInt (Home home, ViewArray< VX > &x, int c)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::Int::Linear::LinBoolInt< VX >
void normalize (void)
 Normalize by removing unused views. More...
 
 LinBoolInt (Space &home, bool share, LinBoolInt &p)
 Constructor for cloning p. More...
 
 LinBoolInt (Home home, ViewArray< VX > &x, int n_s, int c)
 Constructor for creation. 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...
 
GPI::Infogpi (void)
 Provide access to global propagator information. More...
 

Additional Inherited Members

- Protected Attributes inherited from Gecode::Int::Linear::LinBoolInt< VX >
Council< Advisorco
 Council for managing single advisor. More...
 
ViewArray< VX > x
 Boolean views. More...
 
int n_as
 Number of active subscriptions. More...
 
int n_hs
 Number of views that have or had subscriptions. More...
 
int c
 Righthandside. More...
 

Detailed Description

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

Propagator for integer equal to Boolean sum (cardinality)

Requires

Definition at line 823 of file linear.hh.

Constructor & Destructor Documentation

◆ EqBoolInt() [1/2]

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

Constructor for cloning p.

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

◆ EqBoolInt() [2/2]

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

Constructor for creation.

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

Member Function Documentation

◆ copy()

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

Create copy during cloning.

Implements Gecode::Actor.

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

◆ reschedule()

template<class VX >
void Gecode::Int::Linear::EqBoolInt< VX >::reschedule ( Space home)
virtual

Schedule function.

Implements Gecode::Propagator.

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

◆ advise()

template<class VX >
ExecStatus Gecode::Int::Linear::EqBoolInt< VX >::advise ( Space home,
Advisor a,
const Delta d 
)
virtual

Give advice to propagator.

Reimplemented from Gecode::Propagator.

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

◆ propagate()

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

Perform propagation.

Implements Gecode::Propagator.

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

◆ post()

template<class VX >
ExecStatus Gecode::Int::Linear::EqBoolInt< VX >::post ( Home  home,
ViewArray< VX > &  x,
int  c 
)
static

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

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


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