QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Represents a single parameter passed to a function. More...
#include <qgsexpression.h>
Public Member Functions | |
Parameter (const QString &name, bool optional=false, const QVariant &defaultValue=QVariant()) | |
Constructor for Parameter. More... | |
QVariant | defaultValue () const |
Returns the default value for the parameter. More... | |
QString | name () const |
Returns the name of the parameter. More... | |
bool | operator== (const Parameter &other) const |
bool | optional () const |
Returns true if the parameter is optional. More... | |
Represents a single parameter passed to a function.
Definition at line 466 of file qgsexpression.h.
|
inline |
Constructor for Parameter.
name | parameter name, used when named parameter are specified in an expression |
optional | set to true if parameter should be optional |
defaultValue | default value to use for optional parameters |
Definition at line 475 of file qgsexpression.h.
|
inline |
Returns the default value for the parameter.
Definition at line 490 of file qgsexpression.h.
|
inline |
Returns the name of the parameter.
Definition at line 484 of file qgsexpression.h.
|
inline |
Definition at line 492 of file qgsexpression.h.
|
inline |
Returns true if the parameter is optional.
Definition at line 487 of file qgsexpression.h.