1 #ifndef BOOST_STATECHART_TRANSITION_HPP_INCLUDED
2 #define BOOST_STATECHART_TRANSITION_HPP_INCLUDED
13 #include <boost/statechart/detail/reaction_dispatcher.hpp>
25 template<
class Event,
class Destination,
26 class TransitionContext = detail::no_context< Event >,
27 void ( TransitionContext::*pTransitionAction )(
const Event & ) =
28 &detail::no_context< Event >::no_function >
33 template<
class State >
36 static result react_without_action( State & stt )
38 return stt.template transit< Destination >();
41 static result react_with_action( State & stt,
const Event & evt )
43 return stt.template transit< Destination >( pTransitionAction, evt );
52 template<
class State,
class EventBase,
class IdType >
54 State & stt,
const EventBase & evt,
const IdType & eventType )
56 typedef detail::reaction_dispatcher<
57 reactions< State >, State, EventBase, Event, TransitionContext, IdType
59 return dispatcher::react( stt, evt, eventType );