IGSTK
|
Generic implementation of the State in a State Machine model. More...
#include <igstkStateMachineState.h>
Public Types | |
typedef StateMachineState | Self |
typedef Token | Superclass |
![]() | |
typedef unsigned long | IdentifierType |
Type used to represent the codes of the inputs. More... | |
Public Member Functions | |
StateMachineState () | |
Constructor. More... | |
virtual | ~StateMachineState () |
Destructor. More... | |
![]() | |
Token () | |
Constructor. More... | |
virtual | ~Token () |
Destructor. More... | |
virtual IdentifierType | GetIdentifier () |
Returns the unique identifier of the current instance. More... | |
void | Print (std::ostream &os, itk::Indent indent) const |
Method for printing out the member variables of this object to a ostream. More... | |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print the object information in a stream. More... | |
![]() | |
virtual void | PrintSelf (std::ostream &os,::itk::Indent indent) const |
Print the object information in a stream. More... | |
Generic implementation of the State in a State Machine model.
This class provides a generic representation of a State. It is intended to be derived in order to implement specific states an to enforce the following characteristics on the behavior of the State Machine:
These characteristics are enforced by taking advantage of natural checks performed by the compiler. In particular, the uniqueness of the State name will be enforced by making every state to be an C++ variable. The compiler will produce errors as a result of any attempt to repeat the name of a variable inside the same namespace.
Definition at line 54 of file igstkStateMachineState.h.
typedef StateMachineState igstk::StateMachineState< T >::Self |
Definition at line 58 of file igstkStateMachineState.h.
typedef Token igstk::StateMachineState< T >::Superclass |
Definition at line 59 of file igstkStateMachineState.h.
|
inline |
Constructor.
It initializes all the member variables
Definition at line 62 of file igstkStateMachineState.h.
|
inlinevirtual |
Destructor.
Definition at line 65 of file igstkStateMachineState.h.
|
inlineprotectedvirtual |
Print the object information in a stream.
Definition at line 70 of file igstkStateMachineState.h.