StateCommand Class Template
Command that requests a state transition. More...
Declaration
Public Constructors Index
template <typename StateType> | |
| StateCommand (StateTransitionRequest< StateType > transitionRequest) | |
|
Constructs a state command. More... | |
Public Member Functions Index
template <typename StateType> | |
| auto | transitionRequest () const noexcept -> types::StateTransitionRequest< StateType > |
|
Returns the transition request. More... | |
Private Member Attributes Index
template <typename StateType> | |
| StateTransitionRequest< StateType > | transitionRequest_ |
|
The transition request to process. More... | |
Description
Command that requests a state transition.
Encapsulates a StateTransitionRequest and routes it through the command dispatcher to the appropriate StateManager. The command does not execute directly; instead it uses the visitor pattern via accept() to be dispatched.
- Template Parameters
-
StateType The state enum type.
- See Also
StateTransitionRequest
- See Also
- See Also
Definition at line 33 of file StateCommand.ixx.
Public Constructors
StateCommand()
| inline explicit |
Constructs a state command.
- Parameters
-
transitionRequest The transition request.
Definition at line 48 of file StateCommand.ixx.
Public Member Functions
transitionRequest()
| inline noexcept |
Returns the transition request.
- Returns
The encapsulated transition request.
Definition at line 56 of file StateCommand.ixx.
Private Member Attributes
transitionRequest_
|
The transition request to process.
Definition at line 38 of file StateCommand.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.