|
#include <ArmarXCore/core/util/SimpleStatemachine.h>
Public Types | |
using | enum_t = EnumT |
using | hook_function_t = std::function< void(const state_t &)> |
using | state_function_t = std::function< enum_t(state_t &)> |
using | state_machine_t = simple_state_machine< enum_t > |
using | state_t = ::armarx::state_t< enum_t > |
using | transition_function_t = std::function< void(const state_t &)> |
Public Member Functions | |
template<enum_t state> | |
void | configure_state (state_function_t f) |
template<enum_t state0, enum_t state1> | |
void | configure_transition (transition_function_t f=noop_transition) |
template<enum_t state0> | |
state_t | run () |
void | set_post_state_exit_callback (hook_function_t f) |
void | set_post_transition_callback (hook_function_t f) |
void | set_pre_state_enter_callback (hook_function_t f) |
void | set_pre_transition_callback (hook_function_t f) |
Static Public Member Functions | |
static void | noop_transition (const state_t &) |
Definition at line 35 of file SimpleStatemachine.h.
using enum_t = EnumT |
Definition at line 67 of file SimpleStatemachine.h.
using hook_function_t = std::function<void(const state_t&)> |
Definition at line 73 of file SimpleStatemachine.h.
using state_function_t = std::function<enum_t(state_t&)> |
Definition at line 71 of file SimpleStatemachine.h.
using state_machine_t = simple_state_machine<enum_t> |
Definition at line 69 of file SimpleStatemachine.h.
using state_t = ::armarx::state_t<enum_t> |
Definition at line 68 of file SimpleStatemachine.h.
using transition_function_t = std::function<void(const state_t&)> |
Definition at line 72 of file SimpleStatemachine.h.
|
inline |
Definition at line 80 of file SimpleStatemachine.h.
|
inline |
Definition at line 87 of file SimpleStatemachine.h.
|
inlinestatic |
Definition at line 77 of file SimpleStatemachine.h.
|
inline |
Definition at line 113 of file SimpleStatemachine.h.
|
inline |
Definition at line 103 of file SimpleStatemachine.h.
|
inline |
Definition at line 93 of file SimpleStatemachine.h.
|
inline |
Definition at line 108 of file SimpleStatemachine.h.
|
inline |
Definition at line 98 of file SimpleStatemachine.h.