QGIS API Documentation 3.37.0-Master (684a802617f)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsExpressionNode::NodeList Class Reference

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.
 
QgsExpressionNodeat (int i)
 Gets the node at position i in the list.
 
QgsExpressionNode::NodeListclone () 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.
 

Detailed Description

A list of expression nodes.

Definition at line 120 of file qgsexpressionnode.h.

Constructor & Destructor Documentation

◆ ~NodeList()

QgsExpressionNode::NodeList::~NodeList ( )
virtual

Definition at line 52 of file qgsexpressionnodeimpl.cpp.

Member Function Documentation

◆ append() [1/2]

void QgsExpressionNode::NodeList::append ( QgsExpressionNode node)
inline

Takes ownership of the provided node.

Definition at line 125 of file qgsexpressionnode.h.

◆ append() [2/2]

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.

◆ at()

QgsExpressionNode * QgsExpressionNode::NodeList::at ( int  i)
inline

Gets the node at position i in the list.

Definition at line 158 of file qgsexpressionnode.h.

◆ clone()

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.

◆ count()

int QgsExpressionNode::NodeList::count ( ) const
inline

Returns the number of nodes in the list.

Definition at line 135 of file qgsexpressionnode.h.

◆ dump()

QString QgsExpressionNode::NodeList::dump ( ) const
virtual

Returns a string dump of the expression node.

Definition at line 77 of file qgsexpressionnodeimpl.cpp.

◆ hasNamedNodes()

bool QgsExpressionNode::NodeList::hasNamedNodes ( ) const
inline

Returns true if list contains any named nodes.

Definition at line 147 of file qgsexpressionnode.h.

◆ list()

QList< QgsExpressionNode * > QgsExpressionNode::NodeList::list ( )
inline

Gets a list of all the nodes.

Definition at line 152 of file qgsexpressionnode.h.

◆ names()

QStringList QgsExpressionNode::NodeList::names ( ) const
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.

◆ reserve()

void QgsExpressionNode::NodeList::reserve ( int  size)
inline

Reserves size for the node list.

Since
QGIS 3.34

Definition at line 142 of file qgsexpressionnode.h.


The documentation for this class was generated from the following files: