row_tags.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_ROW_TAGS_H
  11. #define BOOST_MSM_ROW_TAGS_H
  12. namespace boost { namespace msm
  13. {
  14. //tags
  15. struct a_row_tag {};
  16. struct g_row_tag {};
  17. struct _row_tag {};
  18. struct row_tag {};
  19. // tags for internal transitions
  20. struct a_irow_tag {};
  21. struct g_irow_tag {};
  22. struct _irow_tag {};
  23. struct irow_tag {};
  24. // tags for transitions internal to state machines (not using any substate)
  25. struct sm_a_i_row_tag {};
  26. struct sm_g_i_row_tag {};
  27. struct sm__i_row_tag {};
  28. struct sm_i_row_tag {};
  29. // flags used internally to handle terminate / interrupt states
  30. struct TerminateFlag
  31. {
  32. typedef int non_forwarding_flag;
  33. typedef int event_blocking_flag;
  34. };
  35. struct InterruptedFlag
  36. {
  37. typedef int non_forwarding_flag;
  38. typedef int event_blocking_flag;
  39. };
  40. template <class EndEvent>
  41. struct EndInterruptFlag
  42. {
  43. typedef int non_forwarding_flag;
  44. };
  45. } } // boost::msm
  46. #endif //BOOST_MSM_ROW_TAGS_H