QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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. More...
 
void append (QgsExpressionNode::NamedNode *node)
 Adds a named node. More...
 
QgsExpressionNodeat (int i)
 Gets the node at position i in the list. More...
 
QgsExpressionNode::NodeListclone () const
 Creates a deep copy of this list. Ownership is transferred to the caller. More...
 
int count () const
 Returns the number of nodes in the list. More...
 
virtual QString dump () const
 Returns a string dump of the expression node. More...
 
bool hasNamedNodes () const
 Returns true if list contains any named nodes. More...
 
QList< QgsExpressionNode * > list ()
 Gets a list of all the nodes. More...
 
QStringList names () const
 Returns a list of names for nodes. More...
 
void reserve (int size)
 Reserves size for the node list. More...
 

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: