Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmetaobjectbuilder.cpp File Reference
#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_NAMESPACE
 

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.

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: