Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlJSMetaParameter Class Reference

#include <qqmljsmetatypes_p.h>

+ Collaboration diagram for QQmlJSMetaParameter:

Public Types

enum  Constness { NonConst = 0 , Const }
 

Public Member Functions

 QQmlJSMetaParameter (QString name=QString(), QString typeName=QString(), Constness typeQualifier=NonConst, QWeakPointer< const QQmlJSScope > type={})
 
QString name () const
 
void setName (const QString &name)
 
QString typeName () const
 
void setTypeName (const QString &typeName)
 
QSharedPointer< const QQmlJSScopetype () const
 
void setType (QWeakPointer< const QQmlJSScope > type)
 
Constness typeQualifier () const
 
void setTypeQualifier (Constness typeQualifier)
 
bool isPointer () const
 
void setIsPointer (bool isPointer)
 
bool isList () const
 
void setIsList (bool isList)
 

Friends

bool operator== (const QQmlJSMetaParameter &a, const QQmlJSMetaParameter &b)
 
bool operator!= (const QQmlJSMetaParameter &a, const QQmlJSMetaParameter &b)
 
size_t qHash (const QQmlJSMetaParameter &e, size_t seed=0)
 

Detailed Description

Definition at line 125 of file qqmljsmetatypes_p.h.

Member Enumeration Documentation

◆ Constness

A non-const parameter is passed either by pointer or by value, depending on its access semantics. For types with reference access semantics, they can be const and will be passed then as const pointer. Const references are treated like values (i.e. non-const).

Enumerator
NonConst 
Const 

Definition at line 134 of file qqmljsmetatypes_p.h.

Constructor & Destructor Documentation

◆ QQmlJSMetaParameter()

QQmlJSMetaParameter::QQmlJSMetaParameter ( QString name = QString(),
QString typeName = QString(),
Constness typeQualifier = NonConst,
QWeakPointer< const QQmlJSScope > type = {} )
inline

Definition at line 139 of file qqmljsmetatypes_p.h.

Member Function Documentation

◆ isList()

bool QQmlJSMetaParameter::isList ( ) const
inline

Definition at line 159 of file qqmljsmetatypes_p.h.

Referenced by setIsList().

+ Here is the caller graph for this function:

◆ isPointer()

bool QQmlJSMetaParameter::isPointer ( ) const
inline

Definition at line 157 of file qqmljsmetatypes_p.h.

Referenced by setIsPointer().

+ Here is the caller graph for this function:

◆ name()

QString QQmlJSMetaParameter::name ( ) const
inline

Definition at line 149 of file qqmljsmetatypes_p.h.

Referenced by setName().

+ Here is the caller graph for this function:

◆ setIsList()

void QQmlJSMetaParameter::setIsList ( bool isList)
inline

Definition at line 160 of file qqmljsmetatypes_p.h.

References isList().

+ Here is the call graph for this function:

◆ setIsPointer()

void QQmlJSMetaParameter::setIsPointer ( bool isPointer)
inline

Definition at line 158 of file qqmljsmetatypes_p.h.

References isPointer().

+ Here is the call graph for this function:

◆ setName()

void QQmlJSMetaParameter::setName ( const QString & name)
inline

Definition at line 150 of file qqmljsmetatypes_p.h.

References name().

+ Here is the call graph for this function:

◆ setType()

void QQmlJSMetaParameter::setType ( QWeakPointer< const QQmlJSScope > type)
inline

Definition at line 154 of file qqmljsmetatypes_p.h.

References type().

Referenced by QQmlJSMetaMethod::setReturnType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTypeName()

void QQmlJSMetaParameter::setTypeName ( const QString & typeName)
inline

Definition at line 152 of file qqmljsmetatypes_p.h.

References typeName().

Referenced by QQmlJSMetaMethod::setReturnTypeName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTypeQualifier()

void QQmlJSMetaParameter::setTypeQualifier ( Constness typeQualifier)
inline

Definition at line 156 of file qqmljsmetatypes_p.h.

References typeQualifier().

+ Here is the call graph for this function:

◆ type()

QSharedPointer< const QQmlJSScope > QQmlJSMetaParameter::type ( ) const
inline

Definition at line 153 of file qqmljsmetatypes_p.h.

References QWeakPointer< T >::toStrongRef().

Referenced by QQmlJSMetaMethod::returnType(), and setType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ typeName()

QString QQmlJSMetaParameter::typeName ( ) const
inline

Definition at line 151 of file qqmljsmetatypes_p.h.

Referenced by QQmlJSMetaMethod::returnTypeName(), and setTypeName().

+ Here is the caller graph for this function:

◆ typeQualifier()

Constness QQmlJSMetaParameter::typeQualifier ( ) const
inline

Definition at line 155 of file qqmljsmetatypes_p.h.

Referenced by setTypeQualifier().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QQmlJSMetaParameter & a,
const QQmlJSMetaParameter & b )
friend

Definition at line 169 of file qqmljsmetatypes_p.h.

◆ operator==

bool operator== ( const QQmlJSMetaParameter & a,
const QQmlJSMetaParameter & b )
friend

Definition at line 162 of file qqmljsmetatypes_p.h.

◆ qHash

size_t qHash ( const QQmlJSMetaParameter & e,
size_t seed = 0 )
friend

Definition at line 174 of file qqmljsmetatypes_p.h.


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