state_machine_cpp
transition_handlers.h
Go to the documentation of this file.
1 //
2 // Created by henri on 27/04/21.
3 //
4 
5 #ifndef STATE_MACHINE_CPP_TRANSITION_HANDLERS_H
6 #define STATE_MACHINE_CPP_TRANSITION_HANDLERS_H
7 
8 
9 namespace state_machine_cpp {
10  class Context;
11 
12  namespace Transition {
13 
14  using TrivialHandler = void(Context &);
15  using ConditionalHandler = bool(const Context &);
16 
17  void DO_NOTHING(Context &);
18 
19  enum struct Type : char { Undefined, Direct, Conditional, Parallelized };
20  }
21 }
22 
23 #endif //STATE_MACHINE_CPP_TRANSITION_HANDLERS_H
state_machine_cpp::Transition::Type::Parallelized
@ Parallelized
state_machine_cpp::Transition::Type
Type
Definition: transition_handlers.h:19
state_machine_cpp::Transition::TrivialHandler
void(Context &) TrivialHandler
Definition: transition_handlers.h:14
state_machine_cpp::Transition::Type::Direct
@ Direct
state_machine_cpp
Definition: algorithm.h:14
state_machine_cpp::Transition::Type::Conditional
@ Conditional
state_machine_cpp::Transition::DO_NOTHING
void DO_NOTHING(Context &)
state_machine_cpp::Transition::Type::Undefined
@ Undefined
state_machine_cpp::Transition::ConditionalHandler
bool(const Context &) ConditionalHandler
Definition: transition_handlers.h:15
state_machine_cpp::Context
Definition: context.h:25