6#include <boost/statechart/event.hpp>
11 namespace event_generators
13 template <
typename TSource,
typename TState>
18 template <
typename TSource,
typename TState>
35 virtual void onEntry()
override;
37 template <
typename TState,
typename TSource>
40 this->
postEventTrue = [
this]() { this->postEvent<EvTrue<TSource, TState>>(); };
41 this->
postEventFalse = [
this]() { this->postEvent<EvFalse<TSource, TState>>(); };
44 virtual void update()
override;
void checkPredicateAndPost()
std::function< bool()> updatePredicate_
void setPredicateFunction(std::function< bool()> updatePredicate)
ConditionalGeneratorMode mode_
std::function< void()> postEventTrue
virtual void update() override
std::function< void()> postEventFalse
virtual void onEntry() override