A list of ExprNodes* that can be iterated and concatenated.
More...
#include <ExprNode.h>
A list of ExprNodes* that can be iterated and concatenated.
Definition at line 60 of file ExprNode.h.
◆ concat() [1/2]
Concatenates another list to the end of this list.
- Parameters
-
other | The list to concatenate (rvalue reference) |
Definition at line 90 of file ExprNode.h.
91 if(other.size_ == 0)
return;
92 if(head_ ==
nullptr) {
96 tail_->setNext(other.head_);
◆ concat() [2/2]
Concatenates another list to the end of this list. The other list will be invalidated and empty after this operation.
- Parameters
-
other | The list to concatenate |
Definition at line 108 of file ExprNode.h.
110 other.head_ =
nullptr;
111 other.tail_ =
nullptr;
void concat(ExprNodeList &&other)
Concatenates another list to the end of this list.
◆ push_back()
void ast::ExprNodeList::push_back |
( |
ExprNode * |
node | ) |
|
|
inline |
Pushes a node to the back of the list.
- Parameters
-
Definition at line 72 of file ExprNode.h.
73 if(node ==
nullptr)
return;
74 if(head_ ==
nullptr) {
81 node->setNext(
nullptr);
The documentation for this class was generated from the following files: