spot
2.8.4
|
Type access provider for token (enum) based symbols. More...
#include <spot/parsetl/parsetl.hh>
Public Types | |
typedef token_type | kind_type |
The symbol type as needed by the constructor. More... | |
Public Member Functions | |
by_type () | |
Default constructor. More... | |
by_type (const by_type &that) | |
Copy constructor. More... | |
by_type (kind_type t) | |
Constructor from (external) token numbers. More... | |
void | clear () |
Record that this symbol is empty. More... | |
void | move (by_type &that) |
Steal the symbol type from that. More... | |
symbol_number_type | type_get () const |
token_type | token () const |
The token. More... | |
Public Attributes | |
int | type |
Type access provider for token (enum) based symbols.
typedef token_type tlyy::parser::by_type::kind_type |
The symbol type as needed by the constructor.
tlyy::parser::by_type::by_type | ( | ) |
Default constructor.
tlyy::parser::by_type::by_type | ( | const by_type & | that | ) |
Copy constructor.
tlyy::parser::by_type::by_type | ( | kind_type | t | ) |
Constructor from (external) token numbers.
void tlyy::parser::by_type::clear | ( | ) |
Record that this symbol is empty.
void tlyy::parser::by_type::move | ( | by_type & | that | ) |
Steal the symbol type from that.
token_type tlyy::parser::by_type::token | ( | ) | const |
The token.
symbol_number_type tlyy::parser::by_type::type_get | ( | ) | const |
The (internal) type number (corresponding to type). empty when empty.
int tlyy::parser::by_type::type |
The symbol type. empty_symbol when empty. An int, not token_number_type, to be able to store empty_symbol.