![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlmetatypedata_p.h>
Classes | |
struct | VersionedUri |
Public Types | |
typedef QHash< int, QQmlTypePrivate * > | Ids |
using | Names = QMultiHash< QHashedString, const QQmlTypePrivate * > |
typedef QHash< QUrl, const QQmlTypePrivate * > | Files |
typedef QMultiHash< const QMetaObject *, QQmlTypePrivate * > | MetaObjects |
using | CompositeTypes = QHash< const QtPrivate::QMetaTypeInterface *, QQmlRefPointer< QV4::ExecutableCompilationUnit > > |
typedef std::vector< std::unique_ptr< QQmlTypeModule > > | TypeModules |
using | ModuleImports = QMultiMap< VersionedUri, QQmlDirParser::Import > |
Public Member Functions | |
QQmlMetaTypeData () | |
~QQmlMetaTypeData () | |
void | registerType (QQmlTypePrivate *priv) |
QQmlTypeModule * | findTypeModule (const QString &module, QTypeRevision version) |
QQmlTypeModule * | addTypeModule (std::unique_ptr< QQmlTypeModule > module) |
bool | registerModuleTypes (const QString &uri) |
QQmlPropertyCache::ConstPtr | propertyCacheForVersion (int index, QTypeRevision version) const |
void | setPropertyCacheForVersion (int index, QTypeRevision version, const QQmlPropertyCache::ConstPtr &cache) |
void | clearPropertyCachesForVersion (int index) |
QQmlPropertyCache::ConstPtr | propertyCache (const QMetaObject *metaObject, QTypeRevision version) |
QQmlPropertyCache::ConstPtr | propertyCache (const QQmlType &type, QTypeRevision version) |
QQmlPropertyCache::ConstPtr | findPropertyCacheInCompositeTypes (QMetaType t) const |
void | setTypeRegistrationFailures (QStringList *failures) |
void | recordTypeRegFailure (const QString &message) |
Definition at line 29 of file qqmlmetatypedata_p.h.
using QQmlMetaTypeData::CompositeTypes = QHash<const QtPrivate::QMetaTypeInterface *, QQmlRefPointer<QV4::ExecutableCompilationUnit> > |
Definition at line 53 of file qqmlmetatypedata_p.h.
typedef QHash<QUrl, const QQmlTypePrivate *> QQmlMetaTypeData::Files |
Definition at line 42 of file qqmlmetatypedata_p.h.
typedef QHash<int, QQmlTypePrivate *> QQmlMetaTypeData::Ids |
Definition at line 36 of file qqmlmetatypedata_p.h.
typedef QMultiHash<const QMetaObject *, QQmlTypePrivate *> QQmlMetaTypeData::MetaObjects |
Definition at line 48 of file qqmlmetatypedata_p.h.
Definition at line 90 of file qqmlmetatypedata_p.h.
using QQmlMetaTypeData::Names = QMultiHash<QHashedString, const QQmlTypePrivate *> |
Definition at line 39 of file qqmlmetatypedata_p.h.
typedef std::vector<std::unique_ptr<QQmlTypeModule> > QQmlMetaTypeData::TypeModules |
Definition at line 85 of file qqmlmetatypedata_p.h.
QT_BEGIN_NAMESPACE QQmlMetaTypeData::QQmlMetaTypeData | ( | ) |
Definition at line 12 of file qqmlmetatypedata.cpp.
QQmlMetaTypeData::~QQmlMetaTypeData | ( | ) |
Definition at line 16 of file qqmlmetatypedata.cpp.
References QSet< T >::clear(), QHash< Key, T >::clear(), compositeTypes, metaTypeToValueType, propertyCaches, qDeleteAll(), QHash< Key, T >::swap(), and undeletableTypes.
QQmlTypeModule * QQmlMetaTypeData::addTypeModule | ( | std::unique_ptr< QQmlTypeModule > | module | ) |
Definition at line 67 of file qqmlmetatypedata.cpp.
References ret, and uriToModule.
void QQmlMetaTypeData::clearPropertyCachesForVersion | ( | int | index | ) |
Definition at line 106 of file qqmlmetatypedata.cpp.
References typePropertyCaches.
QQmlPropertyCache::ConstPtr QQmlMetaTypeData::findPropertyCacheInCompositeTypes | ( | QMetaType | t | ) | const |
Definition at line 254 of file qqmlmetatypedata.cpp.
References compositeTypes, QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), iter, and propertyCacheForPotentialInlineComponentType().
QQmlTypeModule * QQmlMetaTypeData::findTypeModule | ( | const QString & | module, |
QTypeRevision | version | ||
) |
Definition at line 53 of file qqmlmetatypedata.cpp.
References QTypeRevision::majorVersion(), QQmlTypeModule::majorVersion(), QQmlTypeModule::module(), and uriToModule.
QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCache | ( | const QMetaObject * | metaObject, |
QTypeRevision | version | ||
) |
Definition at line 112 of file qqmlmetatypedata.cpp.
References QQmlPropertyCache::createStandalone(), DynamicMetaObject, QHash< Key, T >::insert(), metaObject(), propertyCache(), propertyCaches, and QHash< Key, T >::value().
Referenced by propertyCache(), and propertyCache().
QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCache | ( | const QQmlType & | type, |
QTypeRevision | version | ||
) |
Definition at line 131 of file qqmlmetatypedata.cpp.
References d, error, QTypeRevision::fromMajorVersion(), QTypeRevision::fromVersion(), QTypeRevision::hasMajorVersion(), QTypeRevision::hasMinorVersion(), QQmlRefPointer< T >::isNull(), QQmlType::isValid(), iter, QTypeRevision::majorVersion(), metaObject(), QQmlType::metaObjectRevision(), QTypeRevision::minorVersion(), QString::number(), propertyCache(), propertyCacheForVersion(), Q_ASSERT, qMax(), QQmlMetaType::qmlType(), QQmlPropertyCache::setAllowedRevision(), setPropertyCacheForVersion(), and types.
QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCacheForVersion | ( | int | index, |
QTypeRevision | version | ||
) | const |
Definition at line 90 of file qqmlmetatypedata.cpp.
References typePropertyCaches.
Referenced by propertyCache().
Definition at line 117 of file qqmlmetatypedata_p.h.
References qWarning.
bool QQmlMetaTypeData::registerModuleTypes | ( | const QString & | uri | ) |
Definition at line 80 of file qqmlmetatypedata.cpp.
References QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), function, and moduleTypeRegistrationFunctions.
void QQmlMetaTypeData::registerType | ( | QQmlTypePrivate * | priv | ) |
void QQmlMetaTypeData::setPropertyCacheForVersion | ( | int | index, |
QTypeRevision | version, | ||
const QQmlPropertyCache::ConstPtr & | cache | ||
) |
Definition at line 98 of file qqmlmetatypedata.cpp.
References cache, and typePropertyCaches.
Referenced by propertyCache().
|
inline |
Definition at line 112 of file qqmlmetatypedata_p.h.
CompositeTypes QQmlMetaTypeData::compositeTypes |
Definition at line 55 of file qqmlmetatypedata_p.h.
Referenced by ~QQmlMetaTypeData(), and findPropertyCacheInCompositeTypes().
Ids QQmlMetaTypeData::idToType |
Definition at line 37 of file qqmlmetatypedata_p.h.
Definition at line 56 of file qqmlmetatypedata_p.h.
QSet<int> QQmlMetaTypeData::interfaces |
Definition at line 96 of file qqmlmetatypedata_p.h.
QVector<QQmlPrivate::QmlUnitCacheLookupFunction> QQmlMetaTypeData::lookupCachedQmlUnit |
Definition at line 99 of file qqmlmetatypedata_p.h.
MetaObjects QQmlMetaTypeData::metaObjectToType |
Definition at line 49 of file qqmlmetatypedata_p.h.
QHash<int, QQmlValueType *> QQmlMetaTypeData::metaTypeToValueType |
Definition at line 51 of file qqmlmetatypedata_p.h.
Referenced by ~QQmlMetaTypeData().
ModuleImports QQmlMetaTypeData::moduleImports |
Definition at line 91 of file qqmlmetatypedata_p.h.
Definition at line 93 of file qqmlmetatypedata_p.h.
Referenced by registerModuleTypes().
Names QQmlMetaTypeData::nameToType |
Definition at line 40 of file qqmlmetatypedata_p.h.
QList<QQmlPrivate::AutoParentFunction> QQmlMetaTypeData::parentFunctions |
Definition at line 98 of file qqmlmetatypedata_p.h.
QHash<const QMetaObject *, QQmlPropertyCache::ConstPtr> QQmlMetaTypeData::propertyCaches |
Definition at line 101 of file qqmlmetatypedata_p.h.
Referenced by ~QQmlMetaTypeData(), and propertyCache().
QVector<QHash<QTypeRevision, QQmlPropertyCache::ConstPtr> > QQmlMetaTypeData::typePropertyCaches |
Definition at line 50 of file qqmlmetatypedata_p.h.
Referenced by clearPropertyCachesForVersion(), propertyCacheForVersion(), and setPropertyCacheForVersion().
Definition at line 34 of file qqmlmetatypedata_p.h.
Referenced by propertyCache().
Definition at line 35 of file qqmlmetatypedata_p.h.
Referenced by ~QQmlMetaTypeData().
TypeModules QQmlMetaTypeData::uriToModule |
Definition at line 86 of file qqmlmetatypedata_p.h.
Referenced by addTypeModule(), and findTypeModule().
Files QQmlMetaTypeData::urlToNonFileImportType |
Definition at line 44 of file qqmlmetatypedata_p.h.
Files QQmlMetaTypeData::urlToType |
Definition at line 43 of file qqmlmetatypedata_p.h.