history_policies.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2025 Christian Granzin
  2. // Copyright 2008 Christophe Henry
  3. // henry UNDERSCORE christophe AT hotmail DOT com
  4. // This is an extended version of the state machine available in the boost::mpl library
  5. // Distributed under the same license as the original.
  6. // Copyright for the original version:
  7. // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
  8. // under the Boost Software License, Version 1.0. (See accompanying
  9. // file LICENSE_1_0.txt or copy at
  10. // http://www.boost.org/LICENSE_1_0.txt)
  11. #ifndef BOOST_MSM_FRONT_HISTORY_POLICIES_H
  12. #define BOOST_MSM_FRONT_HISTORY_POLICIES_H
  13. namespace boost { namespace msm { namespace front
  14. {
  15. // Configurable history policies for state machine definitions
  16. // (only used by backmp11).
  17. // No history (default).
  18. struct no_history {};
  19. // Shallow history.
  20. // For deep history use this policy for all the contained state machines.
  21. template <typename... Events>
  22. struct shallow_history {};
  23. // Shallow history for all events (not UML conform).
  24. // For deep history use this policy for all the contained state machines.
  25. struct always_shallow_history {};
  26. }}} // boost::msm::front
  27. #endif //BOOST_MSM_FRONT_HISTORY_POLICIES_H