|
spot 2.14.5
|
#include <spot/parsetl/parsetl.hh>
Public Types | |
| typedef value_type | self_type |
| Type of *this. | |
Public Member Functions | |
| value_type () | |
| Empty construction. | |
| template<typename T> | |
| value_type (const T &t) | |
| Construct and fill. | |
| ~value_type () | |
| Destruction, allowed only if empty. | |
| template<typename T> | |
| T & | emplace () |
| Instantiate an empty T in here. | |
| template<typename T> | |
| T & | emplace (const T &t) |
| Instantiate a T in here from t. | |
| template<typename T> | |
| T & | build () |
| template<typename T> | |
| T & | build (const T &t) |
| template<typename T> | |
| T & | as () |
| Accessor to a built T. | |
| template<typename T> | |
| const T & | as () const |
| Const accessor to a built T (for printer). | |
| template<typename T> | |
| void | swap (self_type &that) |
| template<typename T> | |
| void | move (self_type &that) |
| template<typename T> | |
| void | copy (const self_type &that) |
| Copy the content of that to this. | |
| template<typename T> | |
| void | destroy () |
| Destroy the stored T. | |
A buffer to store and retrieve objects.
Sort of a variant, but does not keep track of the nature of the stored data, since that knowledge is available via the current parser state.
Type of *this.
|
inline |
Empty construction.
References yyraw_.
|
inline |
Construct and fill.
|
inline |
Destruction, allowed only if empty.
|
inline |
|
inline |
Const accessor to a built T (for printer).
|
inline |
Instantiate an empty T in here. Obsolete, use emplace.
References emplace().
|
inline |
Instantiate a T in here from t. Obsolete, use emplace.
References emplace().
|
inline |
|
inline |
|
inline |
|
inline |
Instantiate a T in here from t.
|
inline |
|
inline |
Swap the content with that, of same type.
Both variants must be built beforehand, because swapping the actual data requires reading it (with as()), and this is not possible on unconstructed variants: it would require some dynamic testing, which should not be the variant's responsibility. Swapping between built and (possibly) non-built is done with self_type::move ().
References as().
Referenced by move().
| long double tlyy::parser::value_type::yyalign_me_ |
Strongest alignment constraints.
| char tlyy::parser::value_type::yyraw_[size] |
A buffer large enough to store any of the semantic values.
Referenced by value_type().
1.15.0