QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
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 120 of file qgsexpressionnode.h.
|
virtual |
Definition at line 52 of file qgsexpressionnodeimpl.cpp.
|
inline |
Takes ownership of the provided node.
Definition at line 125 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 158 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 135 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 147 of file qgsexpressionnode.h.
|
inline |
Gets a list of all the nodes.
Definition at line 152 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 163 of file qgsexpressionnode.h.
|
inline |