A input/state symbol.
More...
#include <fsm14.h>
|
| constexpr | Symbol (char const *s=nullptr) noexcept |
| | Ctor.
|
| |
| constexpr bool | constexpr_eq (Symbol const &s) const noexcept |
| | Like == operator, but constexpr.
|
| |
| bool | operator== (Symbol const &s) const noexcept |
| |
| bool | operator== (char const *s) const noexcept |
| |
| template<typename S > |
| bool | operator!= (S &&s) const noexcept |
| |
| constexpr char const * | str () const noexcept |
| | Return a string representation of this symbol.
|
| |
| constexpr char const * | symbol () const noexcept |
| | Return the symbol string.
|
| |
| | operator char const * () const noexcept |
| | Return a string representation of this symbol.
|
| |
| constexpr bool | valid () const noexcept |
| | Check if the symbol is valid.
|
| |
| | operator bool () const noexcept |
| | Check if the symbol is valid.
|
| |
A input/state symbol.
This is wrapper for a string literal.
Definition at line 164 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: