Generated on Sat Feb 7 2015 02:01:49 for Gecode by doxygen 1.8.9.1
Gecode::Int::NValues::EqBool< VY > Class Template Reference

Equal to number of values propagator for Boolean views. More...

#include <nvalues.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::Int::NValues::BoolBase< VY >
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low 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...
 
- Public Member Functions inherited from Gecode::Actor

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< BoolView > &x, VY y)
 Post propagator for $\#\{x_0,\ldots,x_{|x|-1}\}=y$. 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

 EqBool (Home home, int status, ViewArray< BoolView > &x, VY y)
 Constructor for posting. More...
 
 EqBool (Space &home, bool share, EqBool< VY > &p)
 Constructor for cloning p. More...
 
- Protected Member Functions inherited from Gecode::Int::NValues::BoolBase< VY >
 BoolBase (Home home, int status, ViewArray< BoolView > &x, VY y)
 Constructor for posting. More...
 
 BoolBase (Space &home, bool share, BoolBase< VY > &p)
 Constructor for cloning p. 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...
 

Additional Inherited Members

- Protected Attributes inherited from Gecode::Int::NValues::BoolBase< VY >
int status
 Status information about the views. More...
 
Council< ViewAdvisor< BoolView > > c
 The advisor council. More...
 
VY y
 The view for counting the number of values. More...
 
- Static Protected Attributes inherited from Gecode::Int::NValues::BoolBase< VY >
static const int VS_ZERO = 1 << 0
 View status: a zero has already been encountered. More...
 
static const int VS_ONE = 1 << 1
 View status: a one has already been encountered. More...
 

Detailed Description

template<class VY>
class Gecode::Int::NValues::EqBool< VY >

Equal to number of values propagator for Boolean views.

Requires

Definition at line 331 of file nvalues.hh.

Constructor & Destructor Documentation

template<class VY >
Gecode::Int::NValues::EqBool< VY >::EqBool ( Home  home,
int  status,
ViewArray< BoolView > &  x,
VY  y 
)
inlineprotected

Constructor for posting.

Definition at line 45 of file bool-eq.hpp.

template<class VY >
Gecode::Int::NValues::EqBool< VY >::EqBool ( Space home,
bool  share,
EqBool< VY > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 50 of file bool-eq.hpp.

Member Function Documentation

template<class VY >
Actor * Gecode::Int::NValues::EqBool< VY >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 55 of file bool-eq.hpp.

template<class VY >
ExecStatus Gecode::Int::NValues::EqBool< VY >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 122 of file bool-eq.hpp.

template<class VY >
ExecStatus Gecode::Int::NValues::EqBool< VY >::post ( Home  home,
ViewArray< BoolView > &  x,
VY  y 
)
inlinestatic

Post propagator for $\#\{x_0,\ldots,x_{|x|-1}\}=y$.

The view array x is used only temporarily and hence can be region allocated.

Definition at line 61 of file bool-eq.hpp.


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