common_states.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2008 Christophe Henry
  2. // henry UNDERSCORE christophe AT hotmail DOT com
  3. // This is an extended version of the state machine available in the boost::mpl library
  4. // Distributed under the same license as the original.
  5. // Copyright for the original version:
  6. // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
  7. // under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_MSM_FRONT_COMMON_STATES_H
  11. #define BOOST_MSM_FRONT_COMMON_STATES_H
  12. #include <boost/mpl/int.hpp>
  13. #include <boost/mpl/vector.hpp>
  14. #include <boost/fusion/container/map.hpp>
  15. #include <boost/fusion/include/at_c.hpp>
  16. #include <boost/type_traits/add_const.hpp>
  17. #include <boost/msm/front/detail/common_states.hpp>
  18. namespace boost { namespace msm { namespace front
  19. {
  20. // default base: non-polymorphic, not visitable
  21. struct default_base_state
  22. {
  23. ~default_base_state(){}
  24. };
  25. // default polymorphic base state. Derive all states from it to get polymorphic behavior
  26. struct polymorphic_state
  27. {
  28. virtual ~polymorphic_state() {}
  29. };
  30. }}}
  31. #endif //BOOST_MSM_FRONT_COMMON_STATES_H