QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Attributes | List of all members
QgsExpression::NodeList Class Reference

#include <qgsexpression.h>

Public Member Functions

 NodeList ()
 
virtual ~NodeList ()
 
void append (Node *node)
 Takes ownership of the provided node. More...
 
void append (NamedNode *node)
 Adds a named node. More...
 
NodeListclone () const
 Creates a deep copy of this list. More...
 
int count () const
 Returns the number of nodes in the list. More...
 
virtual QString dump () const
 
bool hasNamedNodes () const
 Returns true if list contains any named nodes. More...
 
QList< Node * > list ()
 
QStringList names () const
 Returns a list of names for nodes. More...
 

Protected Attributes

QList< Node * > mList
 
QStringList mNameList
 

Detailed Description

Definition at line 1044 of file qgsexpression.h.

Constructor & Destructor Documentation

◆ NodeList()

QgsExpression::NodeList::NodeList ( )
inline

Definition at line 1047 of file qgsexpression.h.

◆ ~NodeList()

virtual QgsExpression::NodeList::~NodeList ( )
inlinevirtual

Definition at line 1048 of file qgsexpression.h.

Member Function Documentation

◆ append() [1/2]

void QgsExpression::NodeList::append ( Node node)
inline

Takes ownership of the provided node.

Definition at line 1050 of file qgsexpression.h.

◆ append() [2/2]

void QgsExpression::NodeList::append ( NamedNode node)
inline

Adds a named node.

Takes ownership of the provided node.

Note
added in QGIS 2.16

Definition at line 1055 of file qgsexpression.h.

◆ clone()

QgsExpression::NodeList * QgsExpression::NodeList::clone ( ) const

Creates a deep copy of this list.

Ownership is transferred to the caller

Definition at line 4061 of file qgsexpression.cpp.

◆ count()

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

Returns the number of nodes in the list.

Definition at line 1059 of file qgsexpression.h.

◆ dump()

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

Definition at line 4073 of file qgsexpression.cpp.

◆ hasNamedNodes()

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

Returns true if list contains any named nodes.

Note
added in QGIS 2.16

Definition at line 1063 of file qgsexpression.h.

◆ list()

QList<Node*> QgsExpression::NodeList::list ( )
inline

Definition at line 1065 of file qgsexpression.h.

◆ names()

QStringList QgsExpression::NodeList::names ( ) const
inline

Returns a list of names for nodes.

Unnamed nodes will be indicated by an empty string in the list.

Note
added in QGIS 2.16

Definition at line 1069 of file qgsexpression.h.

Member Data Documentation

◆ mList

QList<Node*> QgsExpression::NodeList::mList
protected

Definition at line 1077 of file qgsexpression.h.

◆ mNameList

QStringList QgsExpression::NodeList::mNameList
protected

Definition at line 1078 of file qgsexpression.h.


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