/usr/include/boost/msm
NameSizeModeActions
back/-0755rm
front/-0755rm
mpl_graph/-0755rm
active_state_switching_policies.hpp22250644editdlrm
common.hpp8240644editdlrm
event_traits.hpp11480644editdlrm
msm_grammar.hpp24020644editdlrm
proto_config.hpp6180644editdlrm
row_tags.hpp13670644editdlrm
Edit: /usr/include/boost/msm/msm_grammar.hpp (2402B)
// 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_GRAMMAR_H #define BOOST_MSM_GRAMMAR_H #include #include namespace boost { namespace msm { // base grammar for all of msm's proto-based grammars struct basic_grammar : proto::_ {}; // Forward-declare an expression wrapper template struct msm_terminal; struct msm_domain : proto::domain< proto::generator, basic_grammar > {}; template struct msm_terminal : proto::extends, msm_domain> { typedef proto::extends, msm_domain> base_type; // Needs a constructor msm_terminal(Expr const &e = Expr()) : base_type(e) {} }; // grammar forbidding address of for terminals struct terminal_grammar : proto::not_ > {}; // Forward-declare an expression wrapper template struct euml_terminal; struct sm_domain : proto::domain< proto::generator, terminal_grammar, boost::msm::msm_domain > {}; struct state_grammar : proto::and_< proto::not_ >, proto::not_ >, proto::not_ >, proto::not_ > > {}; struct state_domain : proto::domain< proto::generator, boost::msm::state_grammar,boost::msm::sm_domain > {}; template struct euml_terminal : proto::extends, boost::msm::sm_domain> { typedef proto::extends, boost::msm::sm_domain> base_type; // Needs a constructor euml_terminal(Expr const &e = Expr()) : base_type(e) {} // Unhide Proto's overloaded assignment operator using base_type::operator=; }; } } // boost::msm #endif //BOOST_MSM_GRAMMAR_H