QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
A list of expression nodes. More...
#include <qgsexpressionnode.h>
Public Member Functions | |
virtual | ~NodeList () |
void | append (QgsExpressionNode *node) |
Takes ownership of the provided node. | |
void | append (QgsExpressionNode::NamedNode *node) |
Adds a named node. | |
QgsExpressionNode * | at (int i) |
Gets the node at position i in the list. | |
QgsExpressionNode::NodeList * | clone () const |
Creates a deep copy of this list. Ownership is transferred to the caller. | |
int | count () const |
Returns the number of nodes in the list. | |
virtual QString | dump () const |
Returns a string dump of the expression node. | |
bool | hasNamedNodes () const |
Returns true if list contains any named nodes. | |
QList< QgsExpressionNode * > | list () |
Gets a list of all the nodes. | |
QStringList | names () const |
Returns a list of names for nodes. | |
void | reserve (int size) |
Reserves size for the node list. | |
A list of expression nodes.
Definition at line 121 of file qgsexpressionnode.h.
|
virtual |
Definition at line 52 of file qgsexpressionnodeimpl.cpp.
|
inline |
Takes ownership of the provided node.
Definition at line 126 of file qgsexpressionnode.h.
void QgsExpressionNode::NodeList::append | ( | QgsExpressionNode::NamedNode * | node | ) |
Adds a named node.
Takes ownership of the provided node.
Definition at line 57 of file qgsexpressionnodeimpl.cpp.
|
inline |
Gets the node at position i in the list.
Definition at line 162 of file qgsexpressionnode.h.
QgsExpressionNode::NodeList * QgsExpressionNode::NodeList::clone | ( | ) | const |
Creates a deep copy of this list. Ownership is transferred to the caller.
Definition at line 65 of file qgsexpressionnodeimpl.cpp.
|
inline |
Returns the number of nodes in the list.
Definition at line 137 of file qgsexpressionnode.h.
|
virtual |
Returns a string dump of the expression node.
Definition at line 77 of file qgsexpressionnodeimpl.cpp.
|
inline |
Returns true
if list contains any named nodes.
Definition at line 150 of file qgsexpressionnode.h.
|
inline |
Gets a list of all the nodes.
Definition at line 155 of file qgsexpressionnode.h.
|
inline |
Returns a list of names for nodes.
Unnamed nodes will be indicated by an empty string in the list.
Definition at line 168 of file qgsexpressionnode.h.
|
inline |