16#include <boost/statechart/event.hpp>
25namespace event_generators
27template <
typename TSource,
typename TState>
32template <
typename TSource,
typename TState>
53 template <
typename TState,
typename TSource>
56 this->
postEventTrue = [
this]() { this->postEvent<EvTrue<TSource, TState>>(); };
57 this->
postEventFalse = [
this]() { this->postEvent<EvFalse<TSource, TState>>(); };
60 virtual void update()
override;
virtual ~EgConditionalGenerator()
void setPredicateFunction(std::function< bool()> updatePredicate)
std::function< bool()> updatePredicate_
std::function< void()> postEventTrue
void checkPredicateAndPost()
EgConditionalGenerator(ConditionalGeneratorMode mode, std::function< bool()> updatePredicate=nullptr)
ConditionalGeneratorMode mode_
virtual void update() override
std::function< void()> postEventFalse