QGIS API Documentation  3.6.0-Noosa (5873452)
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...
 

Detailed Description

A list of expression nodes.

Definition at line 117 of file qgsexpressionnode.h.

Constructor & Destructor Documentation

◆ ~NodeList()

QgsExpressionNode::NodeList::~NodeList ( )
virtual

Definition at line 47 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 122 of file qgsexpressionnode.h.

◆ append() [2/2]

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

Adds a named node.

Takes ownership of the provided node.

Since
QGIS 2.16

Definition at line 52 of file qgsexpressionnodeimpl.cpp.

◆ at()

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

Gets the node at position i in the list.

Since
QGIS 3.0

Definition at line 151 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 60 of file qgsexpressionnodeimpl.cpp.

◆ count()

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

Returns the number of nodes in the list.

Definition at line 133 of file qgsexpressionnode.h.

◆ dump()

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

Returns a string dump of the expression node.

Definition at line 72 of file qgsexpressionnodeimpl.cpp.

◆ hasNamedNodes()

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

Returns true if list contains any named nodes.

Since
QGIS 2.16

Definition at line 139 of file qgsexpressionnode.h.

◆ list()

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

Gets a list of all the nodes.

Definition at line 144 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.

Since
QGIS 2.16

Definition at line 157 of file qgsexpressionnode.h.


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