Generated on Sat Aug 25 2012 15:53:11 for Gecode by doxygen 1.7.5
Gecode::Int::Bool::NaryLq Class Reference

Nary Boolean less or equal propagator. More...

#include <bool.hh>

List of all members.

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning.
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low unary)
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 > &x)
 Post propagator $ x_0 \leq x_1 \leq \cdots \leq x_{|x|-1}$.

Protected Member Functions

 NaryLq (Home home, ViewArray< VX > &x)
 Constructor for posting.
 NaryLq (Space &home, bool share, NaryLq< VX > &p)
 Constructor for cloning p.

Protected Attributes

bool run
 Whether the propagator is currently running.
int n_zero
 The number of views assigned to zero in x.
int n_one
 The number of views assigned to one in x.
Council< Advisorc
 The advisor council.

Detailed Description

Nary Boolean less or equal propagator.

Requires

 #include <gecode/int/bool.hh> 

Constructor & Destructor Documentation

Gecode::Int::Bool::NaryLq::NaryLq ( Home  home,
ViewArray< VX > &  x 
) [inline, protected]

Constructor for posting.

Definition at line 114 of file lq.hpp.

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

Constructor for cloning p.

Definition at line 122 of file lq.hpp.


Member Function Documentation

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

Copy propagator during cloning.

Definition at line 130 of file lq.hpp.

ExecStatus Gecode::Int::Bool::NaryLq::advise ( Space home,
Advisor a,
const Delta d 
) [virtual]

Give advice to propagator.

Definition at line 168 of file lq.hpp.

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

Cost function (defined as low unary)

Reimplemented from Gecode::NaryPropagator< VX, PC_BOOL_NONE >.

Definition at line 162 of file lq.hpp.

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

Perform propagation.

Definition at line 188 of file lq.hpp.

ExecStatus Gecode::Int::Bool::NaryLq::post ( Home  home,
ViewArray< VX > &  x 
) [inline, static]

Post propagator $ x_0 \leq x_1 \leq \cdots \leq x_{|x|-1}$.

Definition at line 136 of file lq.hpp.

size_t Gecode::Int::Bool::NaryLq::dispose ( Space home) [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::NaryPropagator< VX, PC_BOOL_NONE >.

Definition at line 178 of file lq.hpp.


Member Data Documentation

Whether the propagator is currently running.

Definition at line 187 of file bool.hh.

The number of views assigned to zero in x.

Definition at line 189 of file bool.hh.

The number of views assigned to one in x.

Definition at line 191 of file bool.hh.

The advisor council.

Definition at line 193 of file bool.hh.


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