Generated on Tue Apr 18 10:23:43 2017 for Gecode by doxygen 1.6.3

Gecode::Int::Bool::NaryOr< VX, VY > Class Template Reference
[Integer propagators]

Boolean n-ary disjunction 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 void reschedule (Space &home)
 Schedule function.
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, VY y)
 Post propagator $ \bigvee_{i=0}^{|x|-1} x_i = y$.

Protected Member Functions

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

Protected Attributes

int n_zero
 The number of views assigned to zero in x.
Council< Advisorc
 The advisor council.

Detailed Description

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

Boolean n-ary disjunction propagator.

Requires

 #include <gecode/int/bool.hh> 

Definition at line 359 of file bool.hh.


Constructor & Destructor Documentation

template<class VX , class VY >
Gecode::Int::Bool::NaryOr< VX, VY >::NaryOr ( Home  home,
ViewArray< VX > &  x,
VY  y 
) [inline, protected]

Constructor for posting.

Definition at line 740 of file or.hpp.

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

Constructor for cloning p.

Definition at line 748 of file or.hpp.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 756 of file or.hpp.

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

Give advice to propagator.

Reimplemented from Gecode::Propagator.

Definition at line 809 of file or.hpp.

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

Cost function (defined as low unary).

Reimplemented from Gecode::MixNaryOnePropagator< VX, PC_BOOL_NONE, VY, PC_BOOL_VAL >.

Definition at line 803 of file or.hpp.

template<class VX , class VY >
void Gecode::Int::Bool::NaryOr< VX, VY >::reschedule ( Space home  )  [inline, virtual]

Schedule function.

Reimplemented from Gecode::MixNaryOnePropagator< VX, PC_BOOL_NONE, VY, PC_BOOL_VAL >.

Definition at line 819 of file or.hpp.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 843 of file or.hpp.

template<class VX , class VY >
ExecStatus Gecode::Int::Bool::NaryOr< VX, VY >::post ( Home  home,
ViewArray< VX > &  x,
VY  y 
) [inline, static]

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

Definition at line 773 of file or.hpp.

template<class VX , class VY >
size_t Gecode::Int::Bool::NaryOr< VX, VY >::dispose ( Space home  )  [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::MixNaryOnePropagator< VX, PC_BOOL_NONE, VY, PC_BOOL_VAL >.

Definition at line 832 of file or.hpp.


Member Data Documentation

template<class VX, class VY>
int Gecode::Int::Bool::NaryOr< VX, VY >::n_zero [protected]

The number of views assigned to zero in x.

Definition at line 365 of file bool.hh.

template<class VX, class VY>
Council<Advisor> Gecode::Int::Bool::NaryOr< VX, VY >::c [protected]

The advisor council.

Definition at line 367 of file bool.hh.


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