sttcl
v0.9c
STTCL C++ template state machine framework
|
#include <State.h>
Public Types | |
typedef StateMachineImpl | Context |
typedef IState | StateInterface |
Public Member Functions | |
virtual void | finalizeSubStateMachines (bool recursive)=0 |
virtual void | initSubStateMachines (bool recursive)=0 |
virtual void | entry (Context *context)=0 |
virtual void | exit (Context *context)=0 |
virtual void | startDo (Context *context)=0 |
virtual void | endDo (Context *context)=0 |
void | changeStateImpl (Context *context, StateBase< StateMachineImpl, IState > *newState) |
template<class StateMachineContext > | |
void | changeStateImpl (StateMachineContext *context, StateBase< StateMachineImpl, IState > *newState) |
Protected Member Functions | |
StateBase () | |
virtual | ~StateBase () |
Friends | |
class | StateMachine< StateMachineImpl, IState > |
Represents a particular state machines state base class.
StateMachineImpl | The state machine implementation type. |
IState | Specifies the internal interface of state implementations for the state machine. |
typedef StateMachineImpl sttcl::StateBase< StateMachineImpl, IState >::Context |
The state machine implementation type.
Reimplemented in sttcl::Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, sttcl::CompositeState< Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, RegionContainerImpl, IInnerState, HistoryType, ActiveState< Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, RegionContainerImpl, IInnerState, StateThreadType, TimeDurationType, SemaphoreType, MutexType >, StateMachine< RegionImpl, IInnerState > >, sttcl::ActiveState< StateImpl, StateMachineImpl, IState, StateThreadType, TimeDurationType, EndDoActionSemaphoreType, ActiveStateMutexType >, sttcl::ActiveState< Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, RegionContainerImpl, IInnerState, StateThreadType, TimeDurationType, SemaphoreType, MutexType >, and sttcl::State< StateImpl, StateMachineImpl, IState >.
typedef IState sttcl::StateBase< StateMachineImpl, IState >::StateInterface |
The internal state implementation interface.
Reimplemented in sttcl::Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, and sttcl::CompositeState< Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, RegionContainerImpl, IInnerState, HistoryType, ActiveState< Region< RegionImpl, RegionContainerImpl, IInnerState, EventArgs, HistoryType, StateThreadType, TimeDurationType, SemaphoreType, MutexType, EventQueueType >, RegionContainerImpl, IInnerState, StateThreadType, TimeDurationType, SemaphoreType, MutexType >, StateMachine< RegionImpl, IInnerState > >.
|
inlineprotected |
Constructor for class StateBase.
|
inlineprotectedvirtual |
Destructor for class StateBase.
|
inline |
Default implementation for the changeState() method.
context | A pointer to the containing state machine. |
newState | The new sibling state the containing state machine should change to. |
|
inline |
Default implementation for the changeState() method.
context | A pointer to the containing state machine. |
newState | The new sibling state the containing state machine should change to. |
|
pure virtual |
Called by the containing state machine before the state is left.
context | A pointer to the containing state machine. |
|
pure virtual |
Called by the containing state machine when the state is entered.
context | A pointer to the containing state machine. |
|
pure virtual |
Called by the containing state machine when the state is left.
context | A pointer to the containing state machine. |
|
pure virtual |
Called by the containing StateMachine to finalize any sub state machines.
recursive | If true further sub state machines should be finalized recursively. |
|
pure virtual |
Called by the containing StateMachine to initialize any sub state machines.
recursive | If true further sub state machines should be initialized recursively. |
|
pure virtual |
Called by the containing state machine after the state was entered.
context | A pointer to the containing state machine. |
|
friend |