|
TuringSim
C++ framework to simulate abstract computing models
|
The base class of all state patterns. More...
#include <state/statePattern.h>
Public Types | |
| typedef StateType_ | StateType |
| The type of states matched. | |
| typedef MatcherType_ | MatcherType |
| The type returned when a state matches the pattern. | |
Public Member Functions | |
| constexpr | StatePattern ()=default |
| Default constructor. | |
| constexpr | StatePattern (const StatePattern &other)=default |
| Copy a state pattern. More... | |
| constexpr | StatePattern (StatePattern &&other)=default |
| Move a state pattern. More... | |
| constexpr StatePattern & | operator= (const StatePattern &other)=default |
| Copy a state pattern. More... | |
| constexpr StatePattern & | operator= (StatePattern &&other)=default |
| Move a state pattern. More... | |
| virtual | ~StatePattern ()=default |
| Destructor. | |
| virtual std::optional< MatcherType > | match (const StateType &state) const noexcept=0 |
| Test if a state matches. More... | |
The base class of all state patterns.
| StateType_ | The type of matched states. |
| MatcherType_ | The type returned when a state matches the pattern, and helps the transition. |
Definition at line 15 of file statePattern.h.
|
constexprdefault |
Copy a state pattern.
| [in] | other | the state pattern to copy. |
|
constexprdefault |
Move a state pattern.
| [in,out] | other | the state pattern to move. |
|
pure virtualnoexcept |
Test if a state matches.
| [in] | state | The state to match. |
Implemented in TuringSim::State::SimpleStatePattern< T >, and TuringSim::State::SimpleStatePattern< StateType >.
|
constexprdefault |
Copy a state pattern.
| [in] | other | the state pattern to copy. |
*this.
|
constexprdefault |
Move a state pattern.
| [in,out] | other | the state pattern to move. |
*this.