QGIS API Documentation  2.99.0-Master (8ec3eaf)
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...
 
Nodeat (int i)
 Get the node at position i in the list. More...
 
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
 
bool hasNamedNodes () const
 Returns true if list contains any named nodes. More...
 
QList< Node * > list ()
 Get a list of all the nodes. More...
 
QStringList names () const
 Returns a list of names for nodes. More...
 

Protected Attributes

QList< Node * > mList
 
QStringList mNameList
 

Detailed Description

Definition at line 938 of file qgsexpression.h.

Constructor & Destructor Documentation

§ NodeList()

QgsExpression::NodeList::NodeList ( )
inline

Definition at line 941 of file qgsexpression.h.

§ ~NodeList()

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

Definition at line 942 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 944 of file qgsexpression.h.

§ append() [2/2]

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

Adds a named node.

Takes ownership of the provided node.

Note
added in QGIS 2.16

Definition at line 4530 of file qgsexpression.cpp.

§ at()

Node* QgsExpression::NodeList::at ( int  i)
inline

Get the node at position i in the list.

Note
Added in QGIS 3.0

Definition at line 969 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 4537 of file qgsexpression.cpp.

§ count()

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

Returns the number of nodes in the list.

Definition at line 953 of file qgsexpression.h.

§ dump()

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

Definition at line 4549 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 957 of file qgsexpression.h.

§ list()

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

Get a list of all the nodes.

Definition at line 962 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 973 of file qgsexpression.h.

Member Data Documentation

§ mList

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

Definition at line 981 of file qgsexpression.h.

§ mNameList

QStringList QgsExpression::NodeList::mNameList
protected

Definition at line 982 of file qgsexpression.h.


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