tsm  0.1.0
Public Types | Static Public Attributes | List of all members
tsm::transition_map_helper< From, Event, std::tuple< Transitions... >, Index, std::enable_if_t<(Index< sizeof...(Transitions))> > Struct Template Reference

#include <tsm_impl.h>

Collaboration diagram for tsm::transition_map_helper< From, Event, std::tuple< Transitions... >, Index, std::enable_if_t<(Index< sizeof...(Transitions))> >:
Collaboration graph

Public Types

using CurrentTransition = std::tuple_element_t< Index, std::tuple< Transitions... > >
 
using type = typename std::conditional_t< match, CurrentTransition, typename transition_map_helper< From, Event, std::tuple< Transitions... >, Index+1 >::type >
 

Static Public Attributes

static constexpr bool match
 

Member Typedef Documentation

◆ CurrentTransition

template<typename From , typename Event , typename... Transitions, size_t Index>
using tsm::transition_map_helper< From, Event, std::tuple< Transitions... >, Index, std::enable_if_t<(Index< sizeof...(Transitions))> >::CurrentTransition = std::tuple_element_t<Index, std::tuple<Transitions...> >

◆ type

template<typename From , typename Event , typename... Transitions, size_t Index>
using tsm::transition_map_helper< From, Event, std::tuple< Transitions... >, Index, std::enable_if_t<(Index< sizeof...(Transitions))> >::type = typename std::conditional_t< match, CurrentTransition, typename transition_map_helper<From, Event, std::tuple<Transitions...>, Index + 1>::type>

Member Data Documentation

◆ match

template<typename From , typename Event , typename... Transitions, size_t Index>
constexpr bool tsm::transition_map_helper< From, Event, std::tuple< Transitions... >, Index, std::enable_if_t<(Index< sizeof...(Transitions))> >::match
staticconstexpr
Initial value:
=
is_transition_match<CurrentTransition, From, Event>::value

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