Gecode::NaryWait< View > Class Template Reference
[Generic propagators]
Wait propagator for several views. More...
#include <wait.hpp>
Public Member Functions | |
| virtual Actor * | copy (Space &home) |
| Perform copying during cloning. | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Const function (defined as high 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< View > &x, std::function< void(Space &home)> c) |
| Post propagator that waits until x becomes assigned and then executes c. | |
Protected Member Functions | |
| NaryWait (Home home, ViewArray< View > &x, std::function< void(Space &home)> c0) | |
| Constructor for creation. | |
| NaryWait (Space &home, NaryWait &p) | |
| Constructor for cloning p. | |
Protected Attributes | |
| ViewArray< View > | x |
| Views to wait for becoming assigned. | |
| SharedData< std::function < void(Space &home)> > | c |
| Continuation to execute. | |
Detailed Description
template<class View>
class Gecode::NaryWait< View >
Wait propagator for several views.
Requires
#include <gecode/kernel/wait.hh>
Definition at line 76 of file wait.hpp.
Constructor & Destructor Documentation
template<class View >
| Gecode::NaryWait< View >::NaryWait | ( | Home | home, | |
| ViewArray< View > & | x, | |||
| std::function< void(Space &home)> | c0 | |||
| ) | [inline, protected] |
template<class View >
| Gecode::NaryWait< View >::NaryWait | ( | Space & | home, | |
| NaryWait< View > & | p | |||
| ) | [inline, protected] |
Member Function Documentation
template<class View >
| Actor * Gecode::NaryWait< View >::copy | ( | Space & | home | ) | [inline, virtual] |
template<class View >
| PropCost Gecode::NaryWait< View >::cost | ( | const Space & | home, | |
| const ModEventDelta & | med | |||
| ) | const [inline, virtual] |
Const function (defined as high unary).
Implements Gecode::Propagator.
template<class View >
| void Gecode::NaryWait< View >::reschedule | ( | Space & | home | ) | [inline, virtual] |
template<class View >
| ExecStatus Gecode::NaryWait< View >::propagate | ( | Space & | home, | |
| const ModEventDelta & | med | |||
| ) | [inline, virtual] |
template<class View >
| ExecStatus Gecode::NaryWait< View >::post | ( | Home | home, | |
| ViewArray< View > & | x, | |||
| std::function< void(Space &home)> | c | |||
| ) | [inline, static] |
template<class View >
| size_t Gecode::NaryWait< View >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Member Data Documentation
template<class View>
ViewArray<View> Gecode::NaryWait< View >::x [protected] |
template<class View>
SharedData<std::function<void(Space& home)> > Gecode::NaryWait< View >::c [protected] |
The documentation for this class was generated from the following file:
- gecode/kernel/propagator/wait.hpp
