template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
class sttcl::CompositeState< CompositeStateImpl, StateMachineImpl, IInnerState, HistoryType, StateBaseImpl, StateMachineBaseImpl >
Represents the base class for a composite state implementation.
- Template Parameters:
-
CompositeStateImpl | The implementing class. |
StateMachineImpl | The implementing class. |
IInnerState | The inner state's interface class type. |
HistoryType | The composite states history pseudo state type. |
StateBaseImpl | The composite states base state implementation type. |
StateMachineBaseImpl | The composite states base state machine implementation type. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
The composite states base state machine implementation type class.
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
Constructor for class CompositeState.
- Parameters:
-
argDoAction | The composite state do action. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
Changes the composite state machine to newState.
- Parameters:
-
newState | The inner state to change to. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
Changes context state machine to another sibling state.
- Parameters:
-
context | A pointer to the containing state machine. |
newState | A pointer to the sibling state to change to. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
Called when this state is entered.
- Parameters:
-
context | The state machine context. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
Called when this state is left.
- Parameters:
-
context | The state machine context. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
void sttcl::CompositeState< CompositeStateImpl, StateMachineImpl, IInnerState, HistoryType, StateBaseImpl, StateMachineBaseImpl >::finalizeImpl |
( |
bool |
finalizeSubStateMachines | ) |
|
|
inline |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
virtual void sttcl::CompositeState< CompositeStateImpl, StateMachineImpl, IInnerState, HistoryType, StateBaseImpl, StateMachineBaseImpl >::finalizeSubStateMachines |
( |
bool |
recursive | ) |
|
|
inlineprotectedvirtual |
Called by the containing StateMachine to finalize any sub state machines.
- Parameters:
-
recursive | If true further sub state machines should be finalized recursively. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
virtual void sttcl::CompositeState< CompositeStateImpl, StateMachineImpl, IInnerState, HistoryType, StateBaseImpl, StateMachineBaseImpl >::initSubStateMachines |
( |
bool |
recursive | ) |
|
|
inlineprotectedvirtual |
Called by the containing StateMachine to initialize any sub state machines.
- Parameters:
-
recursive | If true further sub state machines should be initialized recursively. |
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
Notifies the implementation class when the sub state machine has finished.
template<class CompositeStateImpl, class StateMachineImpl, class IInnerState, CompositeStateHistoryType::Values HistoryType = CompositeStateHistoryType::None, class StateBaseImpl = State<CompositeStateImpl,StateMachineImpl,typename StateMachineImpl::StateInterface>, class StateMachineBaseImpl = StateMachine<CompositeStateImpl, IInnerState>>
void sttcl::CompositeState< CompositeStateImpl, StateMachineImpl, IInnerState, HistoryType, StateBaseImpl, StateMachineBaseImpl >::subStateMachineCompletedImpl |
( |
| ) |
|
|
inline |