1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef BOOST_MSM_BACK_FOLD_TO_LIST_H
- #define BOOST_MSM_BACK_FOLD_TO_LIST_H
- #include <boost/msm/proto_config.hpp>
- #include <boost/proto/core.hpp>
- #include <boost/proto/transform.hpp>
- #include <boost/msm/msm_grammar.hpp>
- #include <boost/fusion/container/list/cons.hpp>
- namespace boost { namespace msm { namespace back
- {
- struct state_copy_tag
- {
- };
- template<class X = proto::is_proto_expr>
- struct define_states_creation
- {
- BOOST_PROTO_BASIC_EXTENDS(
- proto::terminal<state_copy_tag>::type
- , define_states_creation
- , boost::msm::msm_domain
- )
- };
- define_states_creation<> const states_ = {{{}}};
- struct FoldToList
- : ::boost::proto::or_<
-
- ::boost::proto::when<
- ::boost::proto::terminal< state_copy_tag >
- , ::boost::proto::_state
- >
-
-
-
- , ::boost::proto::when<
- ::boost::proto::terminal< state_tag >
- , boost::fusion::cons< ::boost::proto::_, ::boost::proto::_state>(
- ::boost::proto::_, ::boost::proto::_state
- )
- >
-
- , ::boost::proto::when<
- ::boost::proto::terminal< proto::_ >
- , boost::fusion::cons< ::boost::proto::_value, ::boost::proto::_state>(
- ::boost::proto::_value, ::boost::proto::_state
- )
- >
-
-
-
-
- , ::boost::proto::when<
- ::boost::proto::shift_left<FoldToList, FoldToList>
- , FoldToList(
- ::boost::proto::_left
- , ::boost::proto::call<FoldToList( ::boost::proto::_right, ::boost::proto::_state )>
- )
- >
- >
- {};
- }}}
- #endif
|