123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef BOOST_MSM_BACK_MPL_GRAPH_FSM_CHECK_H
- #define BOOST_MSM_BACK_MPL_GRAPH_FSM_CHECK_H
- #include <boost/mpl/assert.hpp>
- #include <boost/msm/back/metafunctions.hpp>
- namespace boost { namespace msm { namespace back
- {
- struct mpl_graph_fsm_check
- {
- typedef int fsm_check;
-
-
- template <class Fsm>
- static void check_orthogonality()
- {
- BOOST_MPL_ASSERT_RELATION( ::boost::msm::back::check_regions_orthogonality<Fsm>::states_in_regions_raw,
- ==,
- ::boost::msm::back::check_regions_orthogonality<Fsm>::cumulated_states_in_regions_raw );
- }
-
-
- template <class Fsm>
- static void check_unreachable_states()
- {
- BOOST_MPL_ASSERT_RELATION( ::boost::msm::back::check_no_unreachable_state<Fsm>::states_in_fsm,
- ==,
- ::boost::msm::back::check_no_unreachable_state<Fsm>::cumulated_states_in_regions );
- }
- };
- } } }
- #endif
|