librostlab-blast
1.0.1
|
#include <blast-parser-parser.h>
Public Types | |
typedef Base | super_type |
Alias to Base. More... | |
Public Member Functions | |
basic_symbol () | |
Default constructor. More... | |
basic_symbol (const basic_symbol &that) | |
Copy constructor. More... | |
basic_symbol (typename Base::kind_type t, YY_MOVE_REF(location_type) l) | |
Constructor for valueless symbols. More... | |
basic_symbol (typename Base::kind_type t, YY_RVREF(semantic_type) v, YY_RVREF(location_type) l) | |
Constructor for symbols with semantic value. More... | |
~basic_symbol () | |
Destroy the symbol. More... | |
void | clear () |
Destroy contents, and record that is empty. More... | |
bool | empty () const YY_NOEXCEPT |
Whether empty. More... | |
void | move (basic_symbol &s) |
Destructive move, s is emptied into this. More... | |
Public Attributes | |
semantic_type | value |
The semantic value. More... | |
location_type | location |
The location. More... | |
A complete symbol.
Expects its Base type to provide access to the symbol type via type_get ().
Provide access to semantic value and location.
Definition at line 261 of file blast-parser-parser.h.
typedef Base rostlab::blast::parser::basic_symbol< Base >::super_type |
Alias to Base.
Definition at line 264 of file blast-parser-parser.h.
|
inline |
Default constructor.
Definition at line 267 of file blast-parser-parser.h.
rostlab::blast::parser::basic_symbol< Base >::basic_symbol | ( | const basic_symbol< Base > & | that | ) |
Copy constructor.
rostlab::blast::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
YY_MOVE_REF(location_type) | l | ||
) |
Constructor for valueless symbols.
rostlab::blast::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
YY_RVREF(semantic_type) | v, | ||
YY_RVREF(location_type) | l | ||
) |
Constructor for symbols with semantic value.
|
inline |
Destroy the symbol.
Definition at line 289 of file blast-parser-parser.h.
|
inline |
Destroy contents, and record that is empty.
Definition at line 295 of file blast-parser-parser.h.
bool rostlab::blast::parser::basic_symbol< Base >::empty | ( | ) | const |
Whether empty.
void rostlab::blast::parser::basic_symbol< Base >::move | ( | basic_symbol< Base > & | s | ) |
Destructive move, s is emptied into this.
location_type rostlab::blast::parser::basic_symbol< Base >::location |
The location.
Definition at line 310 of file blast-parser-parser.h.
semantic_type rostlab::blast::parser::basic_symbol< Base >::value |
The semantic value.
Definition at line 307 of file blast-parser-parser.h.