NodeList class
A list of expression nodes.
Contents
- Reference
Public functions
- void append(QgsExpressionNode* node)
- Takes ownership of the provided node.
-
void append(QgsExpressionNode::
NamedNode* node) - Adds a named node.
- auto at(int i) -> QgsExpressionNode*
- Gets the node at position i in the list.
-
auto clone() const -> QgsExpressionNode::
NodeList* - Creates a deep copy of this list. Ownership is transferred to the caller.
- auto count() const -> int
- Returns the number of nodes in the list.
- auto dump() const -> QString virtual
- Returns a string dump of the expression node.
- auto hasNamedNodes() const -> bool
- Returns true if list contains any named nodes.
- auto list() -> QList<QgsExpressionNode*>
- Gets a list of all the nodes.
- auto names() const -> QStringList
- Returns a list of names for nodes.
Function documentation
void QgsExpressionNode:: NodeList:: append(QgsExpressionNode:: NamedNode* node)
Adds a named node.
Takes ownership of the provided node.
QgsExpressionNode* QgsExpressionNode:: NodeList:: at(int i)
Gets the node at position i in the list.
bool QgsExpressionNode:: NodeList:: hasNamedNodes() const
Returns true if list contains any named nodes.
QStringList QgsExpressionNode:: NodeList:: names() const
Returns a list of names for nodes.
Unnamed nodes will be indicated by an empty string in the list.