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
FunctionDef Struct Reference

#include <moc.h>

+ Collaboration diagram for FunctionDef:

Public Types

enum  Access { Private , Protected , Public }
 

Public Member Functions

QJsonObject toJson () const
 

Static Public Member Functions

static void accessToJson (QJsonObject *obj, Access acs)
 

Public Attributes

Type type
 
QList< ArgumentDefarguments
 
QByteArray normalizedType
 
QByteArray tag
 
QByteArray name
 
QByteArray inPrivateClass
 
Access access = Private
 
int revision = 0
 
bool isConst = false
 
bool isVirtual = false
 
bool isStatic = false
 
bool inlineCode = false
 
bool wasCloned = false
 
bool returnTypeIsVolatile = false
 
bool isCompat = false
 
bool isInvokable = false
 
bool isScriptable = false
 
bool isSlot = false
 
bool isSignal = false
 
bool isPrivateSignal = false
 
bool isConstructor = false
 
bool isDestructor = false
 
bool isAbstract = false
 
bool isRawSlot = false
 

Detailed Description

Definition at line 66 of file moc.h.

Member Enumeration Documentation

◆ Access

Enumerator
Private 
Protected 
Public 

Definition at line 75 of file moc.h.

Member Function Documentation

◆ accessToJson()

void FunctionDef::accessToJson ( QJsonObject * obj,
FunctionDef::Access acs )
static

Definition at line 2111 of file moc.cpp.

References Private, Protected, and Public.

Referenced by toJson(), and ClassDef::toJson().

+ Here is the caller graph for this function:

◆ toJson()

QJsonObject FunctionDef::toJson ( ) const

Definition at line 2085 of file moc.cpp.

References accessToJson(), QList< T >::append(), arg, args, arguments, QString::fromUtf8(), QByteArray::isEmpty(), QList< T >::isEmpty(), normalizedType, revision, tag, and wasCloned.

+ Here is the call graph for this function:

Member Data Documentation

◆ access

Access FunctionDef::access = Private

Definition at line 76 of file moc.h.

Referenced by Moc::parse(), Moc::parseSignals(), and Moc::parseSlots().

◆ arguments

QList<ArgumentDef> FunctionDef::arguments

Definition at line 69 of file moc.h.

Referenced by addFunction(), Moc::parseFunctionArguments(), qDBusParametersForMethod(), and toJson().

◆ inlineCode

bool FunctionDef::inlineCode = false

Definition at line 82 of file moc.h.

Referenced by Moc::parseFunction().

◆ inPrivateClass

QByteArray FunctionDef::inPrivateClass

Definition at line 73 of file moc.h.

◆ isAbstract

bool FunctionDef::isAbstract = false

Definition at line 95 of file moc.h.

Referenced by Moc::parseFunction().

◆ isCompat

bool FunctionDef::isCompat = false

Definition at line 87 of file moc.h.

Referenced by Moc::testFunctionAttribute().

◆ isConst

bool FunctionDef::isConst = false

Definition at line 79 of file moc.h.

Referenced by Moc::parseFunction(), and Moc::parseMaybeFunction().

◆ isConstructor

bool FunctionDef::isConstructor = false

Definition at line 93 of file moc.h.

Referenced by Moc::parseMaybeFunction().

◆ isDestructor

bool FunctionDef::isDestructor = false

Definition at line 94 of file moc.h.

Referenced by Moc::parseMaybeFunction().

◆ isInvokable

bool FunctionDef::isInvokable = false

Definition at line 88 of file moc.h.

Referenced by Moc::parseMaybeFunction(), and Moc::testFunctionAttribute().

◆ isPrivateSignal

bool FunctionDef::isPrivateSignal = false

Definition at line 92 of file moc.h.

Referenced by Moc::parseFunctionArguments().

◆ isRawSlot

bool FunctionDef::isRawSlot = false

Definition at line 96 of file moc.h.

Referenced by Moc::parseFunctionArguments().

◆ isScriptable

bool FunctionDef::isScriptable = false

Definition at line 89 of file moc.h.

Referenced by addFunction(), and Moc::testFunctionAttribute().

◆ isSignal

bool FunctionDef::isSignal = false

Definition at line 91 of file moc.h.

Referenced by Moc::parseMaybeFunction(), and Moc::testFunctionAttribute().

◆ isSlot

bool FunctionDef::isSlot = false

Definition at line 90 of file moc.h.

Referenced by Moc::parseMaybeFunction(), and Moc::testFunctionAttribute().

◆ isStatic

bool FunctionDef::isStatic = false

◆ isVirtual

bool FunctionDef::isVirtual = false

◆ name

QByteArray FunctionDef::name

Definition at line 72 of file moc.h.

Referenced by addFunction(), Moc::parseFunction(), and Moc::parseMaybeFunction().

◆ normalizedType

QByteArray FunctionDef::normalizedType

Definition at line 70 of file moc.h.

Referenced by addFunction(), Moc::parseFunction(), Moc::parseMaybeFunction(), and toJson().

◆ returnTypeIsVolatile

bool FunctionDef::returnTypeIsVolatile = false

Definition at line 85 of file moc.h.

◆ revision

int FunctionDef::revision = 0

Definition at line 77 of file moc.h.

Referenced by Moc::testFunctionRevision(), and toJson().

◆ tag

QByteArray FunctionDef::tag

Definition at line 71 of file moc.h.

Referenced by addFunction(), Moc::parseFunction(), Moc::parseMaybeFunction(), and toJson().

◆ type

Type FunctionDef::type

Definition at line 68 of file moc.h.

Referenced by Moc::parseFunction(), and Moc::parseMaybeFunction().

◆ wasCloned

bool FunctionDef::wasCloned = false

Definition at line 83 of file moc.h.

Referenced by toJson().


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