Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:05

0001 // Copyright 2008 Christophe Henry
0002 // henry UNDERSCORE christophe AT hotmail DOT com
0003 // This is an extended version of the state machine available in the boost::mpl library
0004 // Distributed under the same license as the original.
0005 // Copyright for the original version:
0006 // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
0007 // under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_MSM_EVENT_TRAITS_H
0012 #define BOOST_MSM_EVENT_TRAITS_H
0013 
0014 #include <boost/any.hpp>
0015 #include <boost/mpl/bool.hpp>
0016 
0017 namespace boost { namespace msm
0018 {
0019 
0020 template< typename Event > 
0021 struct is_kleene_event
0022 {
0023   // default: no event is a kleene event (kleene: matches any event in a transitions)
0024   typedef ::boost::mpl::false_ type;
0025 };
0026 
0027 // add this way in this namespace specializations for events which you want to use as kleene
0028 // requirement: a copy-constructor matching the events which will be converted to this kleene
0029 template<> 
0030 struct is_kleene_event< boost::any >
0031 { 
0032   typedef ::boost::mpl::true_ type;
0033 };
0034 
0035 } } // boost::msm
0036 #endif //BOOST_MSM_EVENT_TRAITS_H