|
| ASTPtr () |
| Constructs the object in the.
|
|
T * | get () const |
| gets the underlying ptr value. More...
|
|
const std::unique_ptr< T > & | operator* () const |
| auto conversion to the underlying object ptr. More...
|
|
const std::unique_ptr< T > & | operator-> () const |
| member access. More...
|
|
| operator bool () const noexcept |
|
virtual void | construct (const InputRange &r, ASTStack &st) |
| Pops the next matching object from the AST stack st and claims it.
|
|
| ASTMember () |
| On construction, ASTMember sets its container_node field to the ASTContainer currently under construction and registers itself with the container, to be notified during the construction phase.
|
|
ASTContainer * | container () const |
| Returns the container of which this object is a field.
|
|
template<class T, bool Optional = false>
class pegmatite::ASTPtr< T, Optional >
An ASTPtr
is a wrapper around a pointer to an AST object.
It is intended to be a member of an ASTContainer
and will automatically pop the top item from the stack and claim it when building the AST..