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

Gecode::Int::Exec::When Class Reference
[Integer propagators]

Conditional propagator. More...

#include <exec.hh>

List of all members.

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual size_t dispose (Space &home)
 Dispose propagator.

Static Public Member Functions

static ExecStatus post (Home home, BoolView x, std::function< void(Space &home)> t, std::function< void(Space &home)> e)
 Post propagator.

Protected Member Functions

 When (Space &home, bool share, When &p)
 Constructor for cloning p.
 When (Home home, BoolView x, std::function< void(Space &home)> t, std::function< void(Space &home)> e)
 Constructor for creation.

Protected Attributes

SharedData< std::function
< void(Space &home)> > 
t
 Then function.
SharedData< std::function
< void(Space &home)> > 
e
 Else function pointer.

Detailed Description

Conditional propagator.

Requires

 #include <gecode/int/exec.hh> 

Definition at line 56 of file exec.hh.


Constructor & Destructor Documentation

Gecode::Int::Exec::When::When ( Space home,
bool  share,
When p 
) [inline, protected]

Constructor for cloning p.

Definition at line 49 of file when.hpp.

Gecode::Int::Exec::When::When ( Home  home,
BoolView  x,
std::function< void(Space &home)>  t,
std::function< void(Space &home)>  e 
) [inline, protected]

Constructor for creation.

Definition at line 41 of file when.hpp.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 42 of file when.cpp.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 47 of file when.cpp.

ExecStatus Gecode::Int::Exec::When::post ( Home  home,
BoolView  x,
std::function< void(Space &home)>  t,
std::function< void(Space &home)>  e 
) [inline, static]

Post propagator.

Definition at line 56 of file when.hpp.

size_t Gecode::Int::Exec::When::dispose ( Space home  )  [virtual]

Dispose propagator.

Reimplemented from Gecode::UnaryPropagator< BoolView, PC_BOOL_VAL >.

Definition at line 62 of file when.cpp.


Member Data Documentation

SharedData<std::function<void(Space& home)> > Gecode::Int::Exec::When::t [protected]

Then function.

Definition at line 60 of file exec.hh.

SharedData<std::function<void(Space& home)> > Gecode::Int::Exec::When::e [protected]

Else function pointer.

Definition at line 62 of file exec.hh.


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