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

Number of values propagator for Boolean views base class. More...

#include <nvalues.hh>

Public Member Functions

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
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)=0
 Propagation function. More...
 
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
virtual Actorcopy (Space &home, bool share)=0
 Create copy. More...
 

Protected Member Functions

 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...
 

Protected Attributes

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

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...
 

Additional Inherited Members

- 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...
 

Detailed Description

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

Number of values propagator for Boolean views base class.

Requires

Definition at line 299 of file nvalues.hh.

Constructor & Destructor Documentation

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

Constructor for posting.

Definition at line 42 of file bool-base.hpp.

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

Constructor for cloning p.

Definition at line 54 of file bool-base.hpp.

Member Function Documentation

template<class VY >
ExecStatus Gecode::Int::NValues::BoolBase< VY >::advise ( Space home,
Advisor a,
const Delta d 
)
virtual

Give advice to propagator.

Reimplemented from Gecode::Propagator.

Definition at line 68 of file bool-base.hpp.

template<class VY >
PropCost Gecode::Int::NValues::BoolBase< VY >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as low unary)

Implements Gecode::Propagator.

Definition at line 62 of file bool-base.hpp.

template<class VY >
size_t Gecode::Int::NValues::BoolBase< VY >::dispose ( Space home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 89 of file bool-base.hpp.

Member Data Documentation

template<class VY>
const int Gecode::Int::NValues::BoolBase< VY >::VS_ZERO = 1 << 0
staticprotected

View status: a zero has already been encountered.

Definition at line 302 of file nvalues.hh.

template<class VY>
const int Gecode::Int::NValues::BoolBase< VY >::VS_ONE = 1 << 1
staticprotected

View status: a one has already been encountered.

Definition at line 304 of file nvalues.hh.

template<class VY>
int Gecode::Int::NValues::BoolBase< VY >::status
protected

Status information about the views.

Definition at line 306 of file nvalues.hh.

template<class VY>
Council<ViewAdvisor<BoolView> > Gecode::Int::NValues::BoolBase< VY >::c
protected

The advisor council.

Definition at line 308 of file nvalues.hh.

template<class VY>
VY Gecode::Int::NValues::BoolBase< VY >::y
protected

The view for counting the number of values.

Definition at line 310 of file nvalues.hh.


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