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
qmetaobjectbuilder.cpp File Reference

(d3d224f546d933acef53f7592fea7d69072f7d55)

#include "qmetaobjectbuilder_p.h"
#include "qobject_p.h"
#include "qmetaobject_p.h"
#include <vector>
#include <stdlib.h>
+ Include dependency graph for qmetaobjectbuilder.cpp:

Go to the source code of this file.

Classes

class  QMetaMethodBuilderPrivate
 
class  QMetaPropertyBuilderPrivate
 
class  QMetaEnumBuilderPrivate
 
class  QMetaObjectBuilderPrivate
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Macros

#define ALIGN(size, type)    (size) = ((size) + sizeof(type) - 1) & ~(sizeof(type) - 1)
 

Enumerations

enum  Mode { Prepare , Construct }
 

Functions

Q_CORE_EXPORT bool QtPrivate::isBuiltinType (const QByteArray &type)
 
static const QMetaObjectPrivateqmobPriv (const uint *data)
 
 Q_DECLARE_TYPEINFO (QMetaMethodBuilderPrivate, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QMetaPropertyBuilderPrivate, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QMetaEnumBuilderPrivate, Q_RELOCATABLE_TYPE)
 
static void writeString (char *out, int i, const QByteArray &str, const int offsetOfStringdataMember, int &stringdataOffset)
 
static int aggregateParameterCount (const std::vector< QMetaMethodBuilderPrivate > &methods)
 
template<Mode mode>
static int buildMetaObject (QMetaObjectBuilderPrivate *d, char *buf, int expectedSize)
 

Macro Definition Documentation

◆ ALIGN

#define ALIGN ( size,
type )    (size) = ((size) + sizeof(type) - 1) & ~(sizeof(type) - 1)

Definition at line 1034 of file qmetaobjectbuilder.cpp.

Referenced by buildMetaObject().

Enumeration Type Documentation

◆ Mode

enum Mode
Enumerator
Prepare 
Construct 

Definition at line 1132 of file qmetaobjectbuilder.cpp.

Function Documentation

◆ aggregateParameterCount()

static int aggregateParameterCount ( const std::vector< QMetaMethodBuilderPrivate > & methods)
static

Definition at line 1124 of file qmetaobjectbuilder.cpp.

References method, methods, and sum.

Referenced by buildMetaObject(), and Generator::generateCode().

+ Here is the caller graph for this function:

◆ buildMetaObject()

template<Mode mode>
static int buildMetaObject ( QMetaObjectBuilderPrivate * d,
char * buf,
int expectedSize )
static

◆ Q_DECLARE_TYPEINFO() [1/3]

Q_DECLARE_TYPEINFO ( QMetaEnumBuilderPrivate ,
Q_RELOCATABLE_TYPE  )

◆ Q_DECLARE_TYPEINFO() [2/3]

Q_DECLARE_TYPEINFO ( QMetaMethodBuilderPrivate ,
Q_RELOCATABLE_TYPE  )

◆ Q_DECLARE_TYPEINFO() [3/3]

Q_DECLARE_TYPEINFO ( QMetaPropertyBuilderPrivate ,
Q_RELOCATABLE_TYPE  )

◆ qmobPriv()

static const QMetaObjectPrivate * qmobPriv ( const uint * data)
inlinestatic

Definition at line 56 of file qmetaobjectbuilder.cpp.

Referenced by QMetaObjectBuilder::addMetaObject().

+ Here is the caller graph for this function:

◆ writeString()

static void writeString ( char * out,
int i,
const QByteArray & str,
const int offsetOfStringdataMember,
int & stringdataOffset )
static

Definition at line 1081 of file qmetaobjectbuilder.cpp.

References QString::constData(), i, out, QString::size(), and str.

+ Here is the call graph for this function: