Gecode::Int::Exec::When Class Reference
[Integer propagators]
Conditional propagator. More...
#include <exec.hh>
Public Member Functions | |
| virtual Actor * | copy (Space &home) |
| 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, 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 52 of file exec.hh.
Constructor & Destructor Documentation
Member Function Documentation
| ExecStatus Gecode::Int::Exec::When::propagate | ( | Space & | home, | |
| const ModEventDelta & | med | |||
| ) | [virtual] |
| ExecStatus Gecode::Int::Exec::When::post | ( | Home | home, | |
| BoolView | x, | |||
| std::function< void(Space &home)> | t, | |||
| std::function< void(Space &home)> | e | |||
| ) | [inline, static] |
| size_t Gecode::Int::Exec::When::dispose | ( | Space & | home | ) | [virtual] |
Dispose propagator.
Reimplemented from Gecode::UnaryPropagator< BoolView, PC_BOOL_VAL >.
Member Data Documentation
SharedData<std::function<void(Space& home)> > Gecode::Int::Exec::When::t [protected] |
SharedData<std::function<void(Space& home)> > Gecode::Int::Exec::When::e [protected] |
The documentation for this class was generated from the following files:
