Go to the documentation of this file. 1 #ifndef BOOST_STATECHART_CUSTOM_REACTION_HPP_INCLUDED
2 #define BOOST_STATECHART_CUSTOM_REACTION_HPP_INCLUDED
13 #include <boost/polymorphic_cast.hpp>
27 template<
class Event >
35 template<
class State,
class EventBase,
class IdType >
37 State & stt,
const EventBase & evt,
const IdType & eventType )
39 if ( eventType == Event::static_type() )
42 stt.react( *polymorphic_downcast< const Event * >( &evt ) ) );
59 template<
class State,
class EventBase,
class IdType >
61 State & stt,
const EventBase & evt,
const IdType & )
static reaction_result get_result(::boost::statechart::result value)
Definition: result.hpp:108
Definition: asynchronous_state_machine.hpp:20
static detail::reaction_result react(State &stt, const EventBase &evt, const IdType &)
Definition: custom_reaction.hpp:60
reaction_result
Definition: result.hpp:26
@ no_reaction
Definition: result.hpp:27
static detail::reaction_result react(State &stt, const EventBase &evt, const IdType &eventType)
Definition: custom_reaction.hpp:36
Definition: event_base.hpp:51
Definition: custom_reaction.hpp:29