Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmetatype_p.h File Reference

(392f7f185ab99ba74749e4f9405fe71a620eb5b3)

#include <QtCore/private/qglobal_p.h>
#include "qmetatype.h"
Include dependency graph for qmetatype_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QMetaTypeModuleHelper
struct  QtMetaTypePrivate::TypeDefinition< T >
struct  QtMetaTypePrivate::TypeDefinition< QRegularExpression >

Namespaces

namespace  QtMetaTypePrivate

Macros

#define QMETATYPE_CONVERTER(To, From, assign_and_return)
#define QMETATYPE_CONVERTER_ASSIGN(To, From)
#define QMETATYPE_CONVERTER_FUNCTION(To, assign_and_return)
#define QT_METATYPE_CONVERT_ID_TO_TYPE(MetaTypeName, MetaTypeId, RealName)

Functions

template<typename T>
bool QtMetaTypePrivate::isInterfaceFor (const QtPrivate::QMetaTypeInterface *iface)
template<typename FPointer>
bool QtMetaTypePrivate::checkMetaTypeFlagOrPointer (const QtPrivate::QMetaTypeInterface *iface, FPointer ptr, QMetaType::TypeFlag Flag)
bool QtMetaTypePrivate::isDefaultConstructible (const QtPrivate::QMetaTypeInterface *iface) noexcept
bool QtMetaTypePrivate::isCopyConstructible (const QtPrivate::QMetaTypeInterface *iface) noexcept
bool QtMetaTypePrivate::isMoveConstructible (const QtPrivate::QMetaTypeInterface *iface) noexcept
bool QtMetaTypePrivate::isDestructible (const QtPrivate::QMetaTypeInterface *iface) noexcept
void QtMetaTypePrivate::defaultConstruct (const QtPrivate::QMetaTypeInterface *iface, void *where)
void QtMetaTypePrivate::copyConstruct (const QtPrivate::QMetaTypeInterface *iface, void *where, const void *copy)
void QtMetaTypePrivate::moveConstruct (const QtPrivate::QMetaTypeInterface *iface, void *where, void *copy)
void QtMetaTypePrivate::construct (const QtPrivate::QMetaTypeInterface *iface, void *where, const void *copy)
void QtMetaTypePrivate::destruct (const QtPrivate::QMetaTypeInterface *iface, void *where)
const char * QtMetaTypePrivate::typedefNameForType (const QtPrivate::QMetaTypeInterface *type_d)
template<typename T>
static const QtMetaTypePrivate::QT_PREPEND_NAMESPACE (QtPrivate::QMetaTypeInterface) *getInterfaceFromType()

Variables

Q_CORE_EXPORT QMetaTypeModuleHelper qMetaTypeGuiHelper = {}
Q_CORE_EXPORT QMetaTypeModuleHelper qMetaTypeWidgetsHelper = {}

Macro Definition Documentation

◆ QMETATYPE_CONVERTER

#define QMETATYPE_CONVERTER ( To,
From,
assign_and_return )
Value:
case makePair(QMetaType::To, QMetaType::From): \
if constexpr (QMetaType::To == QMetaType::From) \
Q_UNREACHABLE(); /* can never get here */ \
if (onlyCheck) \
return true; \
{ \
const From &source = *static_cast<const From *>(from); \
To &result = *static_cast<To *>(to); \
assign_and_return \
}
\inmodule QtCore
Definition qmetatype.h:339
GLsizei GLsizei GLchar * source
GLuint64EXT * result
[6]
if(foo.startsWith("("+type+") 0x")) ... QString hello("hello")
[0]

Definition at line 23 of file qmetatype_p.h.

◆ QMETATYPE_CONVERTER_ASSIGN

#define QMETATYPE_CONVERTER_ASSIGN ( To,
From )
Value:
QMETATYPE_CONVERTER(To, From, result = To(source); return true;)
#define QMETATYPE_CONVERTER(To, From, assign_and_return)
Definition qmetatype_p.h:23

Definition at line 34 of file qmetatype_p.h.

◆ QMETATYPE_CONVERTER_FUNCTION

#define QMETATYPE_CONVERTER_FUNCTION ( To,
assign_and_return )
Value:
{ \
To &result = *static_cast<To *>(r); \
assign_and_return \
}
GLboolean r

Definition at line 37 of file qmetatype_p.h.

◆ QT_METATYPE_CONVERT_ID_TO_TYPE

#define QT_METATYPE_CONVERT_ID_TO_TYPE ( MetaTypeName,
MetaTypeId,
RealName )
Value:
case QMetaType::MetaTypeName: \
return QtMetaTypePrivate::getInterfaceFromType<RealName>();

Definition at line 223 of file qmetatype_p.h.

Variable Documentation

◆ qMetaTypeGuiHelper

Q_CONSTINIT Q_CORE_EXPORT QMetaTypeModuleHelper qMetaTypeGuiHelper = {}
extern

Definition at line 1754 of file qmetatype.cpp.

◆ qMetaTypeWidgetsHelper

Q_CONSTINIT Q_CORE_EXPORT QMetaTypeModuleHelper qMetaTypeWidgetsHelper = {}
extern

Definition at line 1755 of file qmetatype.cpp.