A input/state symbol.
More...
#include <fsm14.h>
A input/state symbol.
This is wrapper for a string literal.
Definition at line 165 of file fsm14.h.
◆ Symbol()
constexpr zth::fsm::Symbol::Symbol |
( |
char const * |
s = nullptr | ) |
|
|
inlineconstexprnoexcept |
Ctor.
- Parameters
-
s | the string, or nullptr to create a default (invalid) Symbol. |
Definition at line 172 of file fsm14.h.
◆ constexpr_eq()
constexpr bool zth::fsm::Symbol::constexpr_eq |
( |
Symbol const & |
s | ) |
const |
|
inlineconstexprnoexcept |
Like == operator, but constexpr.
Definition at line 179 of file fsm14.h.
◆ operator bool()
zth::fsm::Symbol::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
Check if the symbol is valid.
Definition at line 253 of file fsm14.h.
◆ operator char const *()
zth::fsm::Symbol::operator char const * |
( |
| ) |
const |
|
inlinenoexcept |
Return a string representation of this symbol.
Definition at line 237 of file fsm14.h.
◆ operator!=()
template<typename S >
bool zth::fsm::Symbol::operator!= |
( |
S && |
s | ) |
const |
|
inlinenoexcept |
◆ operator==() [1/2]
bool zth::fsm::Symbol::operator== |
( |
char const * |
s | ) |
const |
|
inlinenoexcept |
◆ operator==() [2/2]
bool zth::fsm::Symbol::operator== |
( |
Symbol const & |
s | ) |
const |
|
inlinenoexcept |
◆ str()
constexpr char const* zth::fsm::Symbol::str |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return a string representation of this symbol.
Definition at line 220 of file fsm14.h.
◆ symbol()
constexpr char const* zth::fsm::Symbol::symbol |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return the symbol string.
- Returns
nullptr
in case of the default (invalid) Symbol
Definition at line 229 of file fsm14.h.
◆ valid()
constexpr bool zth::fsm::Symbol::valid |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Check if the symbol is valid.
Definition at line 245 of file fsm14.h.
The documentation for this class was generated from the following file: