|
sttcl
v0.9c
STTCL C++ template state machine framework
|
#include <ConcurrentCompositeState.h>


Public Types | |
| typedef ConcurrentCompositeBaseImplementationSelector < CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl > | BaseClassSelectorType |
| typedef BaseClassSelectorType::RESULT_TYPE | BaseClassType |
| typedef StateBaseImpl | StateImplementationBase |
| typedef StateMachineImpl::StateInterface | StateInterface |
| typedef StateMachineImpl::StateBaseClass | StateBaseClass |
| typedef BaseClassType::RegionBaseType | RegionBaseType |
| typedef BaseClassType::RegionsArray | RegionsArray |
| typedef StateMachineImpl | Context |
| typedef sttcl::internal::EventArgsInterfaceSelector < StateMachineImpl, IInnerState, EventArgs > | EventArgsSelectorType |
| typedef EventArgsSelectorType::RefCountPtr | RefCountPtr |
| typedef StateMachineImpl::StateInterface | OuterEventHandler |
| typedef EventArgsSelectorType::InnerEventHandler | InnerEventHandler |
Public Types inherited from sttcl::internal::RegionContainer< CompositeStateImpl, IInnerState, EventArgs > | |
Public Member Functions | |
| ConcurrentCompositeStateBase (Context *argContextStateMachine, const RegionsArray &argRegions) | |
| virtual | ~ConcurrentCompositeStateBase () |
| void | entryImpl (Context *context) |
| void | exitImpl (Context *context) |
| virtual void | finalizeSubStateMachines (bool recursive) |
| virtual void | initSubStateMachines (bool recursive) |
| bool | initializeImpl (bool recursive) |
| void | finalize (bool finalizeSubStateMachines=true) |
| void | finalizeImpl (bool recursive) |
| void | startDoImpl (Context *context) |
| void | endDoImpl (Context *context) |
| void | regionCompletedImpl (RegionBaseType *region) |
| Context * | context () const |
Public Member Functions inherited from sttcl::internal::RegionContainer< CompositeStateImpl, IInnerState, EventArgs > | |
| virtual | ~RegionContainer () |
Additional Inherited Members | |
Protected Types inherited from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl > | |
Protected Member Functions inherited from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl > | |
| ConcurrentCompositeStateWithEventArgs (const RegionsArray &argRegions) | |
| void | broadcastEvent (Context *context, InnerEventHandler eventHandler, RefCountPtr eventArgs) |
Protected Attributes inherited from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl > | |
| const RegionsArray & | regions |
Represents a concurrent composite state implementation base class.
| CompositeStateImpl | |
| StateMachineImpl | |
| IInnerState | |
| NumOfRegions | |
| EventArgs | |
| StateBaseImpl |
| typedef ConcurrentCompositeBaseImplementationSelector< CompositeStateImpl , StateMachineImpl , IInnerState , NumOfRegions , EventArgs , StateBaseImpl > sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::BaseClassSelectorType |
| typedef BaseClassSelectorType::RESULT_TYPE sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::BaseClassType |
| typedef StateMachineImpl sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::Context |
The context state machine implementation type.
Reimplemented from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >.
| typedef sttcl::internal::EventArgsInterfaceSelector<StateMachineImpl,IInnerState,EventArgs> sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::EventArgsSelectorType |
| typedef EventArgsSelectorType::InnerEventHandler sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::InnerEventHandler |
The inner event handler signature.
Reimplemented from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >.
| typedef StateMachineImpl::StateInterface sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::OuterEventHandler |
The outer event handler signature.
Reimplemented from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >.
| typedef EventArgsSelectorType::RefCountPtr sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::RefCountPtr |
The pointer type used to pass event arguments to the contained regions inner states.
Reimplemented from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >.
| typedef BaseClassType::RegionBaseType sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::RegionBaseType |
The region base class type.
Reimplemented from sttcl::internal::RegionContainer< CompositeStateImpl, IInnerState, EventArgs >.
| typedef BaseClassType::RegionsArray sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::RegionsArray |
The type of the regions array.
Reimplemented from sttcl::internal::ConcurrentCompositeStateWithEventArgs< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >.
Reimplemented in sttcl::ConcurrentCompositeState< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >.
| typedef StateMachineImpl::StateBaseClass sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::StateBaseClass |
The state base class type.
| typedef StateBaseImpl sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::StateImplementationBase |
The state implementation base class type.
| typedef StateMachineImpl::StateInterface sttcl::internal::ConcurrentCompositeStateBase< CompositeStateImpl, StateMachineImpl, IInnerState, NumOfRegions, EventArgs, StateBaseImpl >::StateInterface |
The (outer) state interface class type.
|
inline |
Constructor for class ConcurrentCompositeState.
| argContextStateMachine | The containing state machine context. |
| argRegions | A reference to the concrete array of regions in the concurrent composite state. |
|
inlinevirtual |
Destructor for class ConcurrentCompositeState.
|
inline |
|
inline |
Called before this state is left.
| context | The state machine context. |
|
inline |
Default entry() implementation.
| context | The state machine context. |
|
inline |
Default exit() implementation.
| context | The state machine context. |
|
inline |
|
inline |
The default finalizeSubStateMachines() implementation.
| recursive | Indicates to finalize nested sub state machines recursively. |
|
inlinevirtual |
The StateBase::finalizeSubStateMachines() implementation.
| recursive | Indicates to finalize nested sub state machines recursively. |
|
inline |
The default initSubStateMachines() implementation.
| recursive | Indicates to initialize nested sub state machines recursively. |
true if all contained regions were successfully initialized, false otherwise.
|
inlinevirtual |
The StateBase::initSubStateMachines() implementation.
| recursive | Indicates to initialize nested sub state machines recursively. |
|
inline |
Called when a containe region is completed (finalized).
| region | The finalized region. |
|
inline |
Called after this state was entered.
| context | The state machine context. |