Boost Users :
Subject: Re: [Boost-users] How do you handle state-independent events efficiently in MSM?
From: Peter Gissel (pgissel_at_[hidden])
Date: 2011-09-19 12:18:12
>it took a little long but I managed to make plan A work. If you provide an
internal transition table (internal_transition_table) in your fsm
definition, you can avoid >having to define a second region with a single
state. Instead you get a transition looking like this:
>struct internal_transition_table : boost::mpl::vector<
>Internal < event , action , guard >
>In this case, action and guard are functors but it works with other rows
>You will need the latest trunk version.
Thanks, excellent work, I'll give this a try. What are the
trade-offs/advantages between this approach and plan b? Are there any
performance differences, or mostly just style methodology?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net