Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

FSM::StateBase< Child, Event > Class Template Reference

Base class for the states to allow transition function specification. More...

#include <fsm.h>

List of all members.

Public Member Functions

Child & operator[] (const CallbackType &NewCallback)
 Memorises the callback for the transition.
CallbackType GetCallback (void)
 Provides a memorized callback. Second call of the method will return 0 - callback.

Protected Member Functions

 StateBase ()


Detailed Description

template<typename Child, typename Event>
class FSM::StateBase< Child, Event >

Base class for the states to allow transition function specification.

Parameters:
Child A type which derives from the StateBase
Event A user defined state type.

Definition at line 741 of file fsm.h.


Member Function Documentation

template<typename Child, typename Event>
CallbackType FSM::StateBase< Child, Event >::GetCallback void   )  [inline]
 

Provides a memorized callback. Second call of the method will return 0 - callback.

Returns:
A callback

Definition at line 770 of file fsm.h.

template<typename Child, typename Event>
Child& FSM::StateBase< Child, Event >::operator[] const CallbackType &  NewCallback  )  [inline]
 

Memorises the callback for the transition.

Parameters:
NewCallback A callback to remember
Returns:
A reference to the user defined state type object

Definition at line 760 of file fsm.h.


The documentation for this class was generated from the following file:
Generated on Thu Sep 15 21:35:19 2005 for Finite State Machine C++ Templates by  doxygen 1.4.4