QGIS API Documentation
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 921 of file qgsexpression.h.

Constructor & Destructor Documentation

QgsExpression::NodeList::NodeList ( )
inline

Definition at line 924 of file qgsexpression.h.

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

Definition at line 925 of file qgsexpression.h.

Member Function Documentation

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

Takes ownership of the provided node.

Definition at line 927 of file qgsexpression.h.

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 932 of file qgsexpression.h.

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

Creates a deep copy of this list.

Ownership is transferred to the caller

Definition at line 3591 of file qgsexpression.cpp.

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

Returns the number of nodes in the list.

Definition at line 936 of file qgsexpression.h.

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

Definition at line 3603 of file qgsexpression.cpp.

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

Returns true if list contains any named nodes.

Note
added in QGIS 2.16

Definition at line 940 of file qgsexpression.h.

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

Definition at line 942 of file qgsexpression.h.

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 946 of file qgsexpression.h.

Member Data Documentation

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

Definition at line 954 of file qgsexpression.h.

QStringList QgsExpression::NodeList::mNameList
protected

Definition at line 955 of file qgsexpression.h.


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