Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-17 08:50:42

0001 // Copyright 2025 Christian Granzin
0002 // Copyright 2008 Christophe Henry
0003 // henry UNDERSCORE christophe AT hotmail DOT com
0004 // This is an extended version of the state machine available in the boost::mpl library
0005 // Distributed under the same license as the original.
0006 // Copyright for the original version:
0007 // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
0008 // under the Boost Software License, Version 1.0. (See accompanying
0009 // file LICENSE_1_0.txt or copy at
0010 // http://www.boost.org/LICENSE_1_0.txt)
0011 
0012 #ifndef BOOST_MSM_BACKMP11_STATE_MACHINE_CONFIG_H
0013 #define BOOST_MSM_BACKMP11_STATE_MACHINE_CONFIG_H
0014 
0015 #include <deque>
0016 
0017 namespace boost::msm::backmp11
0018 {
0019 
0020 namespace detail
0021 {
0022 
0023 struct config_tag {};
0024 // Check whether a type is a config.
0025 template <class T>
0026 using is_config = std::is_same<typename T::internal::tag, config_tag>;
0027 
0028 }
0029 
0030 // Config for the default compile policy
0031 // (runtime over compile time).
0032 struct favor_runtime_speed;
0033 
0034 // Config for a compile policy,
0035 // which favors compile time over runtime.
0036 struct favor_compile_time;
0037 
0038 // Config for the default context parameter
0039 // (no context).
0040 struct no_context {};
0041 
0042 // Config for the default root sm parameter
0043 // (no root sm).
0044 struct no_root_sm {};
0045 
0046 // Config for the default fsm parameter
0047 // (transition owner)
0048 struct transition_owner{};
0049 
0050 // Default state machine config.
0051 struct default_state_machine_config
0052 {
0053     using compile_policy = favor_runtime_speed;
0054     using context = no_context;
0055     using root_sm = no_root_sm;
0056     using fsm_parameter = transition_owner;
0057     template<typename T>
0058     using queue_container = std::deque<T>;
0059 
0060     struct internal
0061     {
0062         using tag = detail::config_tag;
0063     };
0064 };
0065 
0066 using state_machine_config = default_state_machine_config;
0067 
0068 } // boost::msm::backmp11
0069 
0070 #endif // BOOST_MSM_BACKMP11_STATE_MACHINE_CONFIG_H