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

#include <qqmlmetatypedata_p.h>

Inheritance diagram for QQmlMetaTypeData:
Collaboration diagram for QQmlMetaTypeData:

Classes

struct  Type
struct  VersionedUri
struct  CompositeMetaTypes

Public Types

typedef QHash< int, QQmlTypePrivate * > Ids
using Names = QMultiHash<QHashedString, const QQmlTypePrivate *>
typedef QHash< QUrl, const QQmlTypePrivate * > Files
typedef QMultiHash< const QMetaObject *, const 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)
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)
void clearCompositeTypes ()
void clearCompositeMetaTypes ()

Static Public Member Functions

static QQmlPropertyCache::ConstPtr propertyCacheForPotentialInlineComponentType (QMetaType t, const QQmlMetaTypeData::CompositeTypes::const_iterator &iter)
static void clearCompositeType (const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &cu)

Public Attributes

QList< Typetypes
QSet< QQmlTypeundeletableTypes
Ids idToType
Names nameToType
Files urlToType
MetaObjects metaObjectToType
QHash< int, QQmlValueType * > metaTypeToValueType
CompositeTypes compositeTypes
TypeModules uriToModule
ModuleImports moduleImports
QHash< QString, void(*)()> moduleTypeRegistrationFunctions
QList< QQmlPrivate::AutoParentFunctionparentFunctions
QList< QQmlPrivate::QmlUnitCacheLookupFunctionlookupCachedQmlUnit
QHash< const QMetaObject *, QQmlPropertyCache::ConstPtrpropertyCaches
QHash< QUrl, CompositeMetaTypescompositeMetaTypes

Detailed Description

Definition at line 30 of file qqmlmetatypedata_p.h.

Member Typedef Documentation

◆ CompositeTypes

◆ Files

Definition at line 51 of file qqmlmetatypedata_p.h.

◆ Ids

Definition at line 45 of file qqmlmetatypedata_p.h.

◆ MetaObjects

Definition at line 54 of file qqmlmetatypedata_p.h.

◆ ModuleImports

◆ Names

◆ TypeModules

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

Definition at line 94 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 clearCompositeMetaTypes(), and clearCompositeTypes().

Here is the call graph for this function:

Member Function Documentation

◆ addTypeModule()

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

Definition at line 63 of file qqmlmetatypedata.cpp.

◆ clearCompositeMetaTypes()

void QQmlMetaTypeData::clearCompositeMetaTypes ( )

Definition at line 265 of file qqmlmetatypedata.cpp.

Referenced by ~QQmlMetaTypeData().

Here is the caller graph for this function:

◆ clearCompositeType()

void QQmlMetaTypeData::clearCompositeType ( const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & cu)
inlinestatic

Definition at line 141 of file qqmlmetatypedata_p.h.

◆ clearCompositeTypes()

void QQmlMetaTypeData::clearCompositeTypes ( )

Definition at line 253 of file qqmlmetatypedata.cpp.

Referenced by ~QQmlMetaTypeData().

Here is the caller graph for this function:

◆ findPropertyCacheInCompositeTypes()

QQmlPropertyCache::ConstPtr QQmlMetaTypeData::findPropertyCacheInCompositeTypes ( QMetaType t) const

Definition at line 244 of file qqmlmetatypedata.cpp.

◆ findTypeModule()

QQmlTypeModule * QQmlMetaTypeData::findTypeModule ( const QString & module,
QTypeRevision version )

Definition at line 49 of file qqmlmetatypedata.cpp.

◆ propertyCache() [1/2]

QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCache ( const QMetaObject * metaObject,
QTypeRevision version )

Definition at line 102 of file qqmlmetatypedata.cpp.

◆ propertyCache() [2/2]

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

Definition at line 121 of file qqmlmetatypedata.cpp.

◆ propertyCacheForPotentialInlineComponentType()

QQmlPropertyCache::ConstPtr QQmlMetaTypeData::propertyCacheForPotentialInlineComponentType ( QMetaType t,
const QQmlMetaTypeData::CompositeTypes::const_iterator & iter )
static

Definition at line 233 of file qqmlmetatypedata.cpp.

◆ propertyCacheForVersion()

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

Definition at line 86 of file qqmlmetatypedata.cpp.

◆ recordTypeRegFailure()

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

Definition at line 133 of file qqmlmetatypedata_p.h.

◆ registerModuleTypes()

bool QQmlMetaTypeData::registerModuleTypes ( const QString & uri)

Definition at line 76 of file qqmlmetatypedata.cpp.

◆ registerType()

void QQmlMetaTypeData::registerType ( QQmlTypePrivate * priv)

Definition at line 28 of file qqmlmetatypedata.cpp.

◆ setPropertyCacheForVersion()

void QQmlMetaTypeData::setPropertyCacheForVersion ( int index,
QTypeRevision version,
const QQmlPropertyCache::ConstPtr & cache )

Definition at line 94 of file qqmlmetatypedata.cpp.

◆ setTypeRegistrationFailures()

void QQmlMetaTypeData::setTypeRegistrationFailures ( QStringList * failures)
inline

Definition at line 128 of file qqmlmetatypedata_p.h.

Member Data Documentation

◆ compositeMetaTypes

QHash<QUrl, CompositeMetaTypes> QQmlMetaTypeData::compositeMetaTypes

Definition at line 115 of file qqmlmetatypedata_p.h.

◆ compositeTypes

CompositeTypes QQmlMetaTypeData::compositeTypes

Definition at line 65 of file qqmlmetatypedata_p.h.

◆ idToType

Ids QQmlMetaTypeData::idToType

Definition at line 46 of file qqmlmetatypedata_p.h.

◆ lookupCachedQmlUnit

QList<QQmlPrivate::QmlUnitCacheLookupFunction> QQmlMetaTypeData::lookupCachedQmlUnit

Definition at line 106 of file qqmlmetatypedata_p.h.

◆ metaObjectToType

MetaObjects QQmlMetaTypeData::metaObjectToType

Definition at line 55 of file qqmlmetatypedata_p.h.

◆ metaTypeToValueType

QHash<int, QQmlValueType *> QQmlMetaTypeData::metaTypeToValueType

Definition at line 56 of file qqmlmetatypedata_p.h.

◆ moduleImports

ModuleImports QQmlMetaTypeData::moduleImports

Definition at line 100 of file qqmlmetatypedata_p.h.

◆ moduleTypeRegistrationFunctions

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

Definition at line 102 of file qqmlmetatypedata_p.h.

◆ nameToType

Names QQmlMetaTypeData::nameToType

Definition at line 49 of file qqmlmetatypedata_p.h.

◆ parentFunctions

QList<QQmlPrivate::AutoParentFunction> QQmlMetaTypeData::parentFunctions

Definition at line 105 of file qqmlmetatypedata_p.h.

◆ propertyCaches

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

Definition at line 108 of file qqmlmetatypedata_p.h.

◆ types

QList<Type> QQmlMetaTypeData::types

Definition at line 42 of file qqmlmetatypedata_p.h.

◆ undeletableTypes

QSet<QQmlType> QQmlMetaTypeData::undeletableTypes

Definition at line 43 of file qqmlmetatypedata_p.h.

◆ uriToModule

TypeModules QQmlMetaTypeData::uriToModule

Definition at line 95 of file qqmlmetatypedata_p.h.

◆ urlToType

Files QQmlMetaTypeData::urlToType

Definition at line 52 of file qqmlmetatypedata_p.h.


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