StateMachine
Loading...
Searching...
No Matches
StateMachine1.hpp File Reference
#include <algorithm>
#include <functional>
#include <tuple>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  state_machine_t< state_t, event_t >
 

Typedefs

using action_t = std::function< void()>
 
template<typename state_t , typename event_t >
using transition_t = std::pair< std::pair< state_t, event_t >, std::tuple< action_t, state_t > >
 
template<typename state_t , typename event_t >
using transition_table_t = std::vector< transition_t< state_t, event_t > >
 

Typedef Documentation

◆ action_t

using action_t = std::function<void()>

◆ transition_t

template<typename state_t , typename event_t >
using transition_t = std::pair<std::pair<state_t, event_t>, std::tuple<action_t, state_t> >

◆ transition_table_t

template<typename state_t , typename event_t >
using transition_table_t = std::vector<transition_t<state_t, event_t> >