SMACC
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
smacc::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State > Struct Template Reference
Collaboration diagram for smacc::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >:
Collaboration graph

Static Public Member Functions

static boost::statechart::result react_without_action (State &stt)
 
static boost::statechart::result react_with_action (State &stt, const Event &evt)
 

Detailed Description

template<class Event, class Destination, typename Tag, class TransitionContext, void(TransitionContext::*)(const Event &) pTransitionAction>
template<class State>
struct smacc::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >

Definition at line 28 of file smacc_transition.h.

Member Function Documentation

◆ react_with_action()

template<class Event , class Destination , typename Tag , class TransitionContext , void(TransitionContext::*)(const Event &) pTransitionAction>
template<class State >
static boost::statechart::result smacc::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_with_action ( State &  stt,
const Event &  evt 
)
inlinestatic

Definition at line 41 of file smacc_transition.h.

42 {
43 ROS_DEBUG("[Smacc Transition] REACT WITH ACTION AND EVENT");
45 TRANSITION_TAG mock;
46 specificNamedOnExit(stt, mock);
47 stt.template notifyTransition<Transtype>();
48 return stt.template transit<Destination>(pTransitionAction, evt);
49 }
void specificNamedOnExit(TState &st, TTransitionTagName tn, std::true_type)
Definition: state_traits.h:24

References smacc::specificNamedOnExit().

Here is the call graph for this function:

◆ react_without_action()

template<class Event , class Destination , typename Tag , class TransitionContext , void(TransitionContext::*)(const Event &) pTransitionAction>
template<class State >
static boost::statechart::result smacc::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_without_action ( State &  stt)
inlinestatic

Definition at line 30 of file smacc_transition.h.

31 {
32 ROS_DEBUG("[Smacc Transition] REACT WITHOUT ACTION");
34 TRANSITION_TAG mock;
35 specificNamedOnExit(stt, mock);
36
37 stt.template notifyTransition<Transtype>();
38 return stt.template transit<Destination>();
39 }

References smacc::specificNamedOnExit().

Here is the call graph for this function:

The documentation for this struct was generated from the following file: