|
QGIS API Documentation 4.3.0-Master (35968c35f7e)
|
A thread-safe container of shared pointers to registered functions. More...
#include <qgsexpression.h>

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. | |
A thread-safe container of shared pointers to registered functions.
Definition at line 209 of file qgsexpression.h.
| 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.
| 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.
| 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.