SMACC2
Static Public Member Functions | List of all members
smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State > Struct Template Reference
Collaboration diagram for smacc2::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 smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >

Definition at line 39 of file smacc_transition.hpp.

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 smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_with_action ( State &  stt,
const Event &  evt 
)
inlinestatic

Definition at line 53 of file smacc_transition.hpp.

54 {
55 RCLCPP_DEBUG(stt.getLogger(), "[Smacc Transition] REACT WITH ACTION AND EVENT");
57 Transtype;
58 TRANSITION_TAG mock;
59 specificNamedOnExit(stt, mock);
60 stt.template notifyTransition<Transtype>();
61 return stt.template transit<Destination>(pTransitionAction, evt);
62 }
void specificNamedOnExit(TState &st, TTransitionTagName tn, std::true_type)

References smacc2::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 smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_without_action ( State &  stt)
inlinestatic

Definition at line 41 of file smacc_transition.hpp.

42 {
43 RCLCPP_DEBUG(stt.getLogger(), "[Smacc Transition] REACT WITHOUT ACTION");
45 Transtype;
46 TRANSITION_TAG mock;
47 specificNamedOnExit(stt, mock);
48
49 stt.template notifyTransition<Transtype>();
50 return stt.template transit<Destination>();
51 }

References smacc2::specificNamedOnExit().

Here is the call graph for this function:

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