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
QQmlMetaTypeData Struct Reference

#include <qqmlmetatypedata_p.h>

+ Inheritance diagram for QQmlMetaTypeData:
+ Collaboration diagram for QQmlMetaTypeData:

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
 
typedef std::vector< std::unique_ptr< QQmlTypeModule > > TypeModules
 
using ModuleImports = QMultiMap<VersionedUri, QQmlDirParser::Import>
 

Public Member Functions

 QQmlMetaTypeData ()
 
 ~QQmlMetaTypeData ()
 
void registerType (QQmlTypePrivate *priv)
 
QQmlTypeModulefindTypeModule (const QString &module, QTypeRevision version)
 
QQmlTypeModuleaddTypeModule (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)
 

Public Attributes

QList< QQmlTypetypes
 
QSet< QQmlTypeundeletableTypes
 
Ids idToType
 
Names nameToType
 
Files urlToType
 
Files urlToNonFileImportType
 
MetaObjects metaObjectToType
 
QVector< QHash< QTypeRevision, QQmlPropertyCache::ConstPtr > > typePropertyCaches
 
QHash< int, QQmlValueType * > metaTypeToValueType
 
CompositeTypes compositeTypes
 
QHash< QUrl, QQmlTypeinlineComponentTypes
 
TypeModules uriToModule
 
ModuleImports moduleImports
 
QHash< QString, void(*)()> moduleTypeRegistrationFunctions
 
QSet< int > interfaces
 
QList< QQmlPrivate::AutoParentFunctionparentFunctions
 
QVector< QQmlPrivate::QmlUnitCacheLookupFunctionlookupCachedQmlUnit
 
QHash< const QMetaObject *, QQmlPropertyCache::ConstPtrpropertyCaches
 

Detailed Description

Definition at line 29 of file qqmlmetatypedata_p.h.

Member Typedef Documentation

◆ CompositeTypes

Initial value:
QQmlRefPointer<QV4::CompiledData::CompilationUnit>>
\inmodule QtCore
Definition qhash.h:820

Definition at line 53 of file qqmlmetatypedata_p.h.

◆ Files

Definition at line 42 of file qqmlmetatypedata_p.h.

◆ Ids

Definition at line 36 of file qqmlmetatypedata_p.h.

◆ MetaObjects

◆ ModuleImports

◆ Names

◆ TypeModules

typedef std::vector<std::unique_ptr<QQmlTypeModule> > QQmlMetaTypeData::TypeModules

Definition at line 85 of file qqmlmetatypedata_p.h.

Constructor & Destructor Documentation

◆ QQmlMetaTypeData()

QT_BEGIN_NAMESPACE QQmlMetaTypeData::QQmlMetaTypeData ( )

Definition at line 12 of file qqmlmetatypedata.cpp.

◆ ~QQmlMetaTypeData()

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.

+ Here is the call graph for this function:

Member Function Documentation

◆ addTypeModule()

QQmlTypeModule * QQmlMetaTypeData::addTypeModule ( std::unique_ptr< QQmlTypeModule > module)

Definition at line 67 of file qqmlmetatypedata.cpp.

References ret, and uriToModule.

◆ clearPropertyCachesForVersion()

void QQmlMetaTypeData::clearPropertyCachesForVersion ( int index)

Definition at line 106 of file qqmlmetatypedata.cpp.

References typePropertyCaches.

◆ findPropertyCacheInCompositeTypes()

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().

Referenced by QQmlMetaType::findPropertyCacheInCompositeTypes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findTypeModule()

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.

Referenced by QQmlMetaType::typeModule().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propertyCache() [1/2]

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, QMetaObject::superClass(), and QHash< Key, T >::value().

Referenced by propertyCache(), QQmlMetaType::propertyCache(), QQmlMetaType::propertyCache(), and propertyCache().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propertyCache() [2/2]

QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCache ( const QQmlType & type,
QTypeRevision version )

◆ propertyCacheForVersion()

QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCacheForVersion ( int index,
QTypeRevision version ) const

Definition at line 90 of file qqmlmetatypedata.cpp.

References typePropertyCaches.

Referenced by propertyCache().

+ Here is the caller graph for this function:

◆ recordTypeRegFailure()

void QQmlMetaTypeData::recordTypeRegFailure ( const QString & message)
inline

Definition at line 117 of file qqmlmetatypedata_p.h.

References qWarning.

◆ registerModuleTypes()

bool QQmlMetaTypeData::registerModuleTypes ( const QString & uri)

Definition at line 80 of file qqmlmetatypedata.cpp.

References QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), and moduleTypeRegistrationFunctions.

Referenced by QQmlMetaType::qmlRegisterModuleTypes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerType()

void QQmlMetaTypeData::registerType ( QQmlTypePrivate * priv)

Definition at line 33 of file qqmlmetatypedata.cpp.

References i, and priv().

+ Here is the call graph for this function:

◆ setPropertyCacheForVersion()

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().

+ Here is the caller graph for this function:

◆ setTypeRegistrationFailures()

void QQmlMetaTypeData::setTypeRegistrationFailures ( QStringList * failures)
inline

Definition at line 112 of file qqmlmetatypedata_p.h.

Member Data Documentation

◆ compositeTypes

CompositeTypes QQmlMetaTypeData::compositeTypes

◆ idToType

Ids QQmlMetaTypeData::idToType

Definition at line 37 of file qqmlmetatypedata_p.h.

◆ inlineComponentTypes

QHash<QUrl, QQmlType> QQmlMetaTypeData::inlineComponentTypes

Definition at line 56 of file qqmlmetatypedata_p.h.

◆ interfaces

QSet<int> QQmlMetaTypeData::interfaces

Definition at line 96 of file qqmlmetatypedata_p.h.

Referenced by QQmlMetaType::isInterface().

◆ lookupCachedQmlUnit

◆ metaObjectToType

MetaObjects QQmlMetaTypeData::metaObjectToType

◆ metaTypeToValueType

QHash<int, QQmlValueType *> QQmlMetaTypeData::metaTypeToValueType

Definition at line 51 of file qqmlmetatypedata_p.h.

Referenced by ~QQmlMetaTypeData().

◆ moduleImports

◆ moduleTypeRegistrationFunctions

QHash<QString, void (*)()> QQmlMetaTypeData::moduleTypeRegistrationFunctions

Definition at line 93 of file qqmlmetatypedata_p.h.

Referenced by registerModuleTypes().

◆ nameToType

Names QQmlMetaTypeData::nameToType

Definition at line 40 of file qqmlmetatypedata_p.h.

◆ parentFunctions

◆ propertyCaches

QHash<const QMetaObject *, QQmlPropertyCache::ConstPtr> QQmlMetaTypeData::propertyCaches

Definition at line 101 of file qqmlmetatypedata_p.h.

Referenced by ~QQmlMetaTypeData(), and propertyCache().

◆ typePropertyCaches

◆ types

QList<QQmlType> QQmlMetaTypeData::types

Definition at line 34 of file qqmlmetatypedata_p.h.

Referenced by propertyCache(), and QQmlMetaType::qmlAllTypes().

◆ undeletableTypes

QSet<QQmlType> QQmlMetaTypeData::undeletableTypes

◆ uriToModule

TypeModules QQmlMetaTypeData::uriToModule

◆ urlToNonFileImportType

Files QQmlMetaTypeData::urlToNonFileImportType

Definition at line 44 of file qqmlmetatypedata_p.h.

◆ urlToType

Files QQmlMetaTypeData::urlToType

The documentation for this struct was generated from the following files: