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
qmetatype_p.h File Reference

(8d88f1282bb614ba8fdc0990f733f74639a13cea)

#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

class  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)    QMETATYPE_CONVERTER(To, From, result = To(source); return true;)
 
#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 const QMetaTypeModuleHelperqMetaTypeGuiHelper
 
Q_CORE_EXPORT const QMetaTypeModuleHelperqMetaTypeWidgetsHelper
 

Macro Definition Documentation

◆ QMETATYPE_CONVERTER

#define QMETATYPE_CONVERTER ( To,
From,
assign_and_return )
Value:
case makePair(QMetaType::To, QMetaType::From): \
if (onlyCheck) \
return true; \
{ \
const From &source = *static_cast<const From *>(from); \
To &result = *static_cast<To *>(to); \
assign_and_return \
}
GLsizei GLsizei GLchar * source
GLuint64EXT * result
[6]
if(qFloatDistance(a, b)<(1<< 7))
[0]

Definition at line 23 of file qmetatype_p.h.

◆ QMETATYPE_CONVERTER_ASSIGN

#define QMETATYPE_CONVERTER_ASSIGN ( To,
From )    QMETATYPE_CONVERTER(To, From, result = To(source); return true;)

Definition at line 32 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
[2]

Definition at line 35 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 217 of file qmetatype_p.h.

Variable Documentation

◆ qMetaTypeGuiHelper

Q_CORE_EXPORT const QMetaTypeModuleHelper* qMetaTypeGuiHelper
extern

Definition at line 1662 of file qmetatype.cpp.

Referenced by qModuleHelperForType(), and qRegisterGuiVariant().

◆ qMetaTypeWidgetsHelper

Q_CORE_EXPORT const QMetaTypeModuleHelper* qMetaTypeWidgetsHelper
extern

Definition at line 1663 of file qmetatype.cpp.

Referenced by qModuleHelperForType(), and qRegisterWidgetsVariant().