remove tabs

[SVN r16707]
This commit is contained in:
Aleksey Gurtovoy
2002-12-27 09:08:30 +00:00
parent 3cbb908295
commit 090c80b675
3 changed files with 10 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ struct STT_void_row_impl
{ {
typedef typename Transition::from_state_t state_t; typedef typename Transition::from_state_t state_t;
typedef typename Transition::fsm_t fsm_t; typedef typename Transition::fsm_t fsm_t;
typedef typename Transition::base_event_t base_event_t; typedef typename Transition::base_event_t base_event_t;
static long do_process_event(fsm_t&, long state, base_event_t const&) static long do_process_event(fsm_t&, long state, base_event_t const&)
{ {
@@ -61,7 +61,7 @@ struct STT_event_row_impl
{ {
typedef typename Transition::from_state_t state_t; typedef typename Transition::from_state_t state_t;
typedef typename Transition::fsm_t fsm_t; typedef typename Transition::fsm_t fsm_t;
typedef typename Transition::base_event_t base_event_t; typedef typename Transition::base_event_t base_event_t;
static long do_process_event(fsm_t& fsm, long state, base_event_t const& evt) static long do_process_event(fsm_t& fsm, long state, base_event_t const& evt)
{ {
@@ -89,7 +89,7 @@ struct STT_state_row_impl
: PrevRowImpl : PrevRowImpl
{ {
typedef typename PrevRowImpl::fsm_t fsm_t; typedef typename PrevRowImpl::fsm_t fsm_t;
typedef typename PrevRowImpl::base_event_t base_event_t; typedef typename PrevRowImpl::base_event_t base_event_t;
static long do_transition(fsm_t& fsm, long state, base_event_t const& evt) static long do_transition(fsm_t& fsm, long state, base_event_t const& evt)
{ {

View File

@@ -34,11 +34,11 @@ template<
struct transition struct transition
{ {
typedef T fsm_t; typedef T fsm_t;
typedef From from_state_t; typedef From from_state_t;
typedef Event event_t; typedef Event event_t;
typedef To to_state_t; typedef To to_state_t;
typedef typename Event::base_t base_event_t; typedef typename Event::base_t base_event_t;
static bool do_transition(T& x, base_event_t const& e) static bool do_transition(T& x, base_event_t const& e)
{ {
assert(dynamic_cast<event_t const*>(&e) == &e); assert(dynamic_cast<event_t const*>(&e) == &e);

View File

@@ -33,7 +33,7 @@ template< typename Derived >
class state_machine class state_machine
{ {
private: private:
typedef state_machine self_t; typedef state_machine self_t;
typedef aux::base_event base_event_t; typedef aux::base_event base_event_t;
typedef boost::shared_ptr<base_event_t const> base_event_ptr_t; typedef boost::shared_ptr<base_event_t const> base_event_ptr_t;
@@ -82,7 +82,7 @@ class state_machine
{ {
} }
virtual ~state_machine() virtual ~state_machine()
{ {
} }
@@ -120,7 +120,7 @@ class state_machine
void do_transition(base_event_t const& evt) void do_transition(base_event_t const& evt)
{ {
typedef typename Derived::transition_table STT_; typedef typename Derived::transition_table STT_;
typedef typename aux::STT_impl_gen< STT_ >::type STT_impl_; typedef typename aux::STT_impl_gen< STT_ >::type STT_impl_;
m_state = STT_impl_::do_transition( m_state = STT_impl_::do_transition(
static_cast<Derived&>(*this) static_cast<Derived&>(*this)
@@ -129,7 +129,7 @@ class state_machine
); );
} }
state_t m_state; state_t m_state;
std::queue< base_event_ptr_t > m_events_queue; std::queue< base_event_ptr_t > m_events_queue;
}; };