6#include <boost/statechart/event.hpp>
11 namespace state_reactors
13 template <
typename TSource,
typename TState>
18 template <
typename TSource,
typename TState>
23 template <
typename TSource,
typename TState>
41 virtual void onEntry()
override;
43 template <
typename TState,
typename TSource>
46 this->
postEventA = [
this]() { this->postEvent<EventA<TSource, TState>>(); };
47 this->
postEventB = [
this]() { this->postEvent<EventB<TSource, TState>>(); };
48 this->
postEventC = [
this]() { this->postEvent<EventC<TSource, TState>>(); };
53 virtual void update()
override;
virtual void update() override
RandomGenerateReactorMode mode_
std::function< void()> postEventA
std::function< void()> postEventB
std::function< void()> postEventC
virtual void onEntry() override
RandomGenerateReactorMode