Generated on Thu Mar 7 2013 10:22:05 for Gecode by doxygen 1.8.3.1
Gecode::Int::Bool::Clause< VX, VY > Class Template Reference

Boolean clause propagator (disjunctive) More...

#include <bool.hh>

Classes

class  Tagged
 Advisors for views (tagged whether for x or y) More...
 

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
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 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...
 
double afc (void) const
 Return the accumlated failure count. More...
 

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< VX > &x, ViewArray< VY > &y, VX z)
 Post propagator $ \bigvee_{i=0}^{|x|-1} x_i \vee \bigvee_{i=0}^{|x|-1} y_i = z$. More...
 

Protected Member Functions

void cancel (Space &home)
 Cancel subscriptions. More...
 
 Clause (Home home, ViewArray< VX > &x, ViewArray< VY > &y, VX z)
 Constructor for posting. More...
 
 Clause (Space &home, bool share, Clause< VX, 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...
 

Protected Attributes

ViewArray< VX > x
 Positive views. More...
 
ViewArray< VY > y
 Positive views (origin from negative variables) More...
 
VX z
 Result. More...
 
int n_zero
 The number of views assigned to zero in x and y. More...
 
Council< Taggedc
 The advisor council. More...
 

Detailed Description

template<class VX, class VY>
class Gecode::Int::Bool::Clause< VX, VY >

Boolean clause propagator (disjunctive)

Requires

#include <gecode/int/bool.hh>

Definition at line 490 of file bool.hh.

Constructor & Destructor Documentation

template<class VX , class VY >
Gecode::Int::Bool::Clause< VX, VY >::Clause ( Home  home,
ViewArray< VX > &  x,
ViewArray< VY > &  y,
VX  z 
)
inlineprotected

Constructor for posting.

Definition at line 208 of file clause.hpp.

template<class VX , class VY >
Gecode::Int::Bool::Clause< VX, VY >::Clause ( Space home,
bool  share,
Clause< VX, VY > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 218 of file clause.hpp.

Member Function Documentation

template<class VX , class VY >
void Gecode::Int::Bool::Clause< VX, VY >::cancel ( Space home)
inlineprotected

Cancel subscriptions.

Definition at line 297 of file clause.hpp.

template<class VX , class VY >
Actor * Gecode::Int::Bool::Clause< VX, VY >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 242 of file clause.hpp.

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

Give advice to propagator.

Reimplemented from Gecode::Propagator.

Definition at line 320 of file clause.hpp.

template<class VX , class VY >
PropCost Gecode::Int::Bool::Clause< VX, VY >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as low unary)

Implements Gecode::Propagator.

Definition at line 291 of file clause.hpp.

template<class VX , class VY >
ExecStatus Gecode::Int::Bool::Clause< VX, VY >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 331 of file clause.hpp.

template<class VX , class VY >
ExecStatus Gecode::Int::Bool::Clause< VX, VY >::post ( Home  home,
ViewArray< VX > &  x,
ViewArray< VY > &  y,
VX  z 
)
inlinestatic

Post propagator $ \bigvee_{i=0}^{|x|-1} x_i \vee \bigvee_{i=0}^{|x|-1} y_i = z$.

Definition at line 250 of file clause.hpp.

template<class VX , class VY >
size_t Gecode::Int::Bool::Clause< VX, VY >::dispose ( Space home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 311 of file clause.hpp.

Member Data Documentation

template<class VX, class VY>
ViewArray<VX> Gecode::Int::Bool::Clause< VX, VY >::x
protected

Positive views.

Definition at line 493 of file bool.hh.

template<class VX, class VY>
ViewArray<VY> Gecode::Int::Bool::Clause< VX, VY >::y
protected

Positive views (origin from negative variables)

Definition at line 495 of file bool.hh.

template<class VX, class VY>
VX Gecode::Int::Bool::Clause< VX, VY >::z
protected

Result.

Definition at line 497 of file bool.hh.

template<class VX, class VY>
int Gecode::Int::Bool::Clause< VX, VY >::n_zero
protected

The number of views assigned to zero in x and y.

Definition at line 499 of file bool.hh.

template<class VX, class VY>
Council<Tagged> Gecode::Int::Bool::Clause< VX, VY >::c
protected

The advisor council.

Definition at line 511 of file bool.hh.


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