sttcl  v0.9c
STTCL C++ template state machine framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType > Class Template Reference

#include <CompositeState.h>

List of all members.

Protected Member Functions

 CompositeStateBaseWithDeepHistory ()
 ~CompositeStateBaseWithDeepHistory ()
void saveCurrentState (InnerStateType *currentState)
InnerStateType * getStateHistory ()
template<class CompositeStateImpl >
InnerStateType * resumeStateHistory (CompositeStateImpl *compositeState)
template<class CompositeStateImpl >
InnerStateType * finalizeStateHistory (CompositeStateImpl *compositeState)

Protected Attributes

InnerStateType * lastState

Detailed Description

template<class InnerStateType>
class sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >

Represents the base class for a composite state with a deep history pseudo state.

Template Parameters:
InnerStateTypeThe state base class type of the composite states inner states.

Constructor & Destructor Documentation

template<class InnerStateType >
sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::CompositeStateBaseWithDeepHistory ( )
inlineprotected

Constructor for class CompositeStateBaseWithDeepHistory.

template<class InnerStateType >
sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::~CompositeStateBaseWithDeepHistory ( )
inlineprotected

Destructor for class CompositeStateBaseWithDeepHistory.


Member Function Documentation

template<class InnerStateType >
template<class CompositeStateImpl >
InnerStateType* sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::finalizeStateHistory ( CompositeStateImpl *  compositeState)
inlineprotected

Resets the state history.

Template Parameters:
CompositeStateImplThe composite state implementation class.
Parameters:
compositeStateA pointer to the composite state implementation.
Returns:
The current inner state of the composite state.
template<class InnerStateType >
InnerStateType* sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::getStateHistory ( )
inlineprotected

Gets the last saved state.

Returns:
template<class InnerStateType >
template<class CompositeStateImpl >
InnerStateType* sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::resumeStateHistory ( CompositeStateImpl *  compositeState)
inlineprotected

Resumes the state history.

Template Parameters:
CompositeStateImplThe composite state implementation class.
Parameters:
compositeStateA pointer to the composite state implementation.
Returns:
The current inner state of the composite state.
template<class InnerStateType >
void sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::saveCurrentState ( InnerStateType *  currentState)
inlineprotected

Saves the current inner state of the composite state.

Parameters:
currentState

Member Data Documentation

template<class InnerStateType >
InnerStateType* sttcl::internal::CompositeStateBaseWithDeepHistory< InnerStateType >::lastState
protected

The documentation for this class was generated from the following file: