/usr/include/boost/msm/back
NameSizeModeActions
args.hpp35790644editdlrm
bind_helpers.hpp13940644editdlrm
common_types.hpp11950644editdlrm
copy_policies.hpp8490644editdlrm
default_compile_policy.hpp8560644editdlrm
dispatch_table.hpp203530644editdlrm
favor_compile_time.hpp138270644editdlrm
fold_to_list.hpp24360644editdlrm
history_policies.hpp56780644editdlrm
metafunctions.hpp356290644editdlrm
mpl_graph_fsm_check.hpp18950644editdlrm
no_fsm_check.hpp10430644editdlrm
queue_container_circular.hpp9810644editdlrm
queue_container_deque.hpp9370644editdlrm
state_machine.hpp1248090644editdlrm
tools.hpp20210644editdlrm
Edit: /usr/include/boost/msm/back/tools.hpp (2021B)
// Copyright 2008 Christophe Henry // henry UNDERSCORE christophe AT hotmail DOT com // This is an extended version of the state machine available in the boost::mpl library // Distributed under the same license as the original. // Copyright for the original version: // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed // under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MSM_BACK_TOOLS_H #define BOOST_MSM_BACK_TOOLS_H #include #include #include #include namespace boost { namespace msm { namespace back { // fills the array passed in with the state names in the correct order // the array must be big enough. To know the needed size, use mpl::size // on fsm::generate_state_set template struct fill_state_names { fill_state_names(char const** names):m_names(names){} template void operator()(boost::msm::wrap const&) { m_names[get_state_id::value]= typeid(StateType).name(); } private: char const** m_names; }; // fills the typeid-generated name of the given state in the string passed as argument template struct get_state_name { get_state_name(std::string& name_to_fill, int state_id):m_name(name_to_fill),m_state_id(state_id){} template void operator()(boost::msm::wrap const&) { if (get_state_id::value == m_state_id) { m_name = typeid(StateType).name(); } } private: std::string& m_name; int m_state_id; }; // displays the typeid of the given Type struct display_type { template void operator()(boost::msm::wrap const&) { std::cout << typeid(Type).name() << std::endl; } }; } } }//boost::msm::back #endif //BOOST_MSM_BACK_TOOLS_H