Maki
Loading...
Searching...
No Matches
states.hpp
1//Copyright Florian Goujeon 2021 - 2025.
2//Distributed under the Boost Software License, Version 1.0.
3//(See accompanying file LICENSE or copy at
4//https://www.boost.org/LICENSE_1_0.txt)
5//Official repository: https://github.com/fgoujeon/maki
6
7#ifndef MAKI_STATES_HPP
8#define MAKI_STATES_HPP
9
10#include "detail/state_impls/simple_no_context.hpp"
11#include "state.hpp"
12#include "state_builder.hpp"
13
14namespace maki
15{
16
17namespace detail::state_builders
18{
19 inline constexpr auto null = state_builder{}
20 .pretty_name("");
21
22 inline constexpr auto final = state_builder{};
23}
24
28inline constexpr auto undefined = state_builder{};
29
33namespace states
34{
35#if MAKI_DETAIL_DOXYGEN
49#else
51#endif
52
53#if MAKI_DETAIL_DOXYGEN
59 constexpr auto final = state<IMPLEMENTATION_DETAIL>{};
60#else
62#endif
63
64#if MAKI_DETAIL_DOXYGEN
71#else
72 inline constexpr auto undefined =
74 ;
75#endif
76}
77
78} //namespace
79
80#endif
State builder.
Definition state_builder.hpp:42
Represents a state.
Definition state.hpp:26
Predefined state and pseudostate objects.
Definition states.hpp:34
constexpr auto undefined
Represents the undefined state.
Definition states.hpp:70
constexpr auto null
Dummy state object given to transition hooks.
Definition states.hpp:48
The Maki library.
constexpr auto undefined
The state builder of the undefined state.
Definition states.hpp:28