![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The Parameter class describes one function parameter. More...
#include <parameters.h>
Public Member Functions | |
Parameter ()=default | |
Parameter (QString type, QString name=QString(), QString defaultValue=QString()) | |
void | setName (const QString &name) |
bool | hasType () const |
const QString & | type () const |
const QString & | name () const |
const QString & | defaultValue () const |
void | setDefaultValue (const QString &t) |
void | set (const QString &type, const QString &name, const QString &defaultValue=QString()) |
QString | signature (bool includeValue=false) const |
Reconstructs the text signature for the parameter and returns it. | |
const QString & | canonicalType () const |
void | setCanonicalType (const QString &t) |
Public Attributes | |
QString | m_canonicalType {} |
QString | m_type {} |
QString | m_name {} |
QString | m_defaultValue {} |
The Parameter class describes one function parameter.
A parameter can be a function parameter or a macro parameter. It has a name, a data type, and an optional default value. These are all stored as strings so they can be compared with a parameter in a function signature to find a match.
Definition at line 19 of file parameters.h.
|
default |
|
inlineexplicit |
Definition at line 23 of file parameters.h.
References Parameter().
Referenced by Parameter().
|
inlinenodiscard |
Definition at line 44 of file parameters.h.
|
inlinenodiscard |
Definition at line 32 of file parameters.h.
|
inlinenodiscard |
Definition at line 29 of file parameters.h.
|
inlinenodiscard |
Definition at line 31 of file parameters.h.
|
inline |
Definition at line 35 of file parameters.h.
Definition at line 45 of file parameters.h.
Definition at line 33 of file parameters.h.
Definition at line 28 of file parameters.h.
|
nodiscard |
Reconstructs the text signature for the parameter and returns it.
If includeValue is true and there is a default value, the default value is appended with '='.
Definition at line 36 of file parameters.cpp.
|
inlinenodiscard |
Definition at line 30 of file parameters.h.
QString Parameter::m_canonicalType {} |
Definition at line 48 of file parameters.h.
QString Parameter::m_defaultValue {} |
Definition at line 51 of file parameters.h.
QString Parameter::m_name {} |
Definition at line 50 of file parameters.h.
QString Parameter::m_type {} |
Definition at line 49 of file parameters.h.