dextool.fsm

Members

Functions

get
auto ref get(TMap tmap)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Fsm
struct Fsm(StateTT...)

A state machine derived from the types it is based on.

TypeDataMap
struct TypeDataMap(RawDataT, Ts...)

Hold a mapping between a Type and data.

Templates

act
template act(handlers...)

Act on the current state. Use (ref S) to modify the states data.

next
template next(handlers...)

Transition to the next state.

Meta

License

MPL-2

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

This module contains utilities to reduce the boilerplate when implementing a FSM.

# Callback Builder Useful to generate the callbacks that control the actions to perform in an FSM or the state transitions.