QGIS API Documentation 4.3.0-Master (35968c35f7e)
Loading...
Searching...
No Matches
QgsExpression::SharedFunctionPtrList Class Reference

A thread-safe container of shared pointers to registered functions. More...

#include <qgsexpression.h>

Inheritance diagram for QgsExpression::SharedFunctionPtrList:

Public Member Functions

int functionIndex (const QString &name) const
 Returns the index of the function in the list.
SharedFunctionPtr getFunction (int index) const
 Returns a shared pointer for the function with the specified index.
void updateFunctionNameMap ()
 Updates the map of function names to indices.

Detailed Description

A thread-safe container of shared pointers to registered functions.

Since
QGIS 4.4

Definition at line 209 of file qgsexpression.h.

Member Function Documentation

◆ functionIndex()

int QgsExpression::SharedFunctionPtrList::functionIndex ( const QString & name) const

Returns the index of the function in the list.

Name matching is case-insensitive, and applied against function aliases too.

The returned index applies to this container only, and may differ from indices for other SharedFunctionPtrList instances.

Definition at line 158 of file qgsexpression.cpp.

◆ getFunction()

QgsExpression::SharedFunctionPtr QgsExpression::SharedFunctionPtrList::getFunction ( int index) const

Returns a shared pointer for the function with the specified index.

Definition at line 179 of file qgsexpression.cpp.

◆ updateFunctionNameMap()

void QgsExpression::SharedFunctionPtrList::updateFunctionNameMap ( )

Updates the map of function names to indices.

This should be called ONLY after initially populating a new instance of the list, while only a single reference to the list is held.

Definition at line 163 of file qgsexpression.cpp.


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