Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QV4::ResolvedTypeReference Class Reference

#include <qv4resolvedtypereference_p.h>

+ Collaboration diagram for QV4::ResolvedTypeReference:

Public Member Functions

 ResolvedTypeReference ()=default
 
 ~ResolvedTypeReference ()
 
QQmlPropertyCache::ConstPtr propertyCache () const
 Returns the property cache, if one alread exists.
 
QQmlPropertyCache::ConstPtr createPropertyCache ()
 Returns the property cache, creating one if it doesn't already exist.
 
bool addToHash (QCryptographicHash *hash, QHash< quintptr, QByteArray > *checksums)
 
void doDynamicTypeCheck ()
 
QQmlType type () const
 
void setType (QQmlType type)
 
QQmlRefPointer< QV4::ExecutableCompilationUnitcompilationUnit ()
 
void setCompilationUnit (QQmlRefPointer< QV4::ExecutableCompilationUnit > unit)
 
bool referencesCompilationUnit () const
 
void setReferencesCompilationUnit (bool doReference)
 
QQmlPropertyCache::ConstPtr typePropertyCache () const
 
void setTypePropertyCache (QQmlPropertyCache::ConstPtr cache)
 
QTypeRevision version () const
 
void setVersion (QTypeRevision version)
 
bool isFullyDynamicType () const
 
void setFullyDynamicType (bool fullyDynamic)
 

Detailed Description

Definition at line 29 of file qv4resolvedtypereference_p.h.

Constructor & Destructor Documentation

◆ ResolvedTypeReference()

QV4::ResolvedTypeReference::ResolvedTypeReference ( )
default

◆ ~ResolvedTypeReference()

QV4::ResolvedTypeReference::~ResolvedTypeReference ( )
inline

Definition at line 34 of file qv4resolvedtypereference_p.h.

References QQmlRefCounted< T >::release().

+ Here is the call graph for this function:

Member Function Documentation

◆ addToHash()

bool QV4::ResolvedTypeReference::addToHash ( QCryptographicHash hash,
QHash< quintptr, QByteArray > *  checksums 
)

Definition at line 67 of file qv4resolvedtypereference.cpp.

References createPropertyCache(), QV4::CompiledData::CompilationUnit::data, hash, QQmlType::isInlineComponentType(), QQmlRefPointer< T >::isNull(), QQmlType::isValid(), QV4::CompiledData::Unit::md5Checksum, QQmlType::module(), ok, propertyCache(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ compilationUnit()

QQmlRefPointer< QV4::ExecutableCompilationUnit > QV4::ResolvedTypeReference::compilationUnit ( )
inline

Definition at line 49 of file qv4resolvedtypereference_p.h.

◆ createPropertyCache()

QQmlPropertyCache::ConstPtr QV4::ResolvedTypeReference::createPropertyCache ( )

Returns the property cache, creating one if it doesn't already exist.

The cache is not referenced.

Definition at line 50 of file qv4resolvedtypereference.cpp.

References QQmlType::extensionMetaObject(), QQmlType::isValid(), metaObject(), QQmlType::metaObject(), QQmlMetaType::propertyCache(), Q_ASSERT, and QV4::ExecutableCompilationUnit::rootPropertyCache().

Referenced by addToHash().

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

◆ doDynamicTypeCheck()

void QV4::ResolvedTypeReference::doDynamicTypeCheck ( )

Definition at line 24 of file qv4resolvedtypereference.cpp.

References QQmlType::isValid(), QQmlType::metaObject(), mo, and QV4::ExecutableCompilationUnit::rootPropertyCache().

+ Here is the call graph for this function:

◆ isFullyDynamicType()

bool QV4::ResolvedTypeReference::isFullyDynamicType ( ) const
inline

Definition at line 90 of file qv4resolvedtypereference_p.h.

◆ propertyCache()

QQmlPropertyCache::ConstPtr QV4::ResolvedTypeReference::propertyCache ( ) const

Returns the property cache, if one alread exists.

The cache is not referenced.

Definition at line 39 of file qv4resolvedtypereference.cpp.

References QQmlType::isValid(), and QV4::ExecutableCompilationUnit::rootPropertyCache().

Referenced by addToHash().

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

◆ referencesCompilationUnit()

bool QV4::ResolvedTypeReference::referencesCompilationUnit ( ) const
inline

Definition at line 63 of file qv4resolvedtypereference_p.h.

◆ setCompilationUnit()

void QV4::ResolvedTypeReference::setCompilationUnit ( QQmlRefPointer< QV4::ExecutableCompilationUnit unit)
inline

Definition at line 50 of file qv4resolvedtypereference_p.h.

References QQmlRefPointer< T >::data(), QQmlRefCounted< T >::release(), and QQmlRefPointer< T >::take().

+ Here is the call graph for this function:

◆ setFullyDynamicType()

void QV4::ResolvedTypeReference::setFullyDynamicType ( bool  fullyDynamic)
inline

Definition at line 91 of file qv4resolvedtypereference_p.h.

◆ setReferencesCompilationUnit()

void QV4::ResolvedTypeReference::setReferencesCompilationUnit ( bool  doReference)
inline

Definition at line 64 of file qv4resolvedtypereference_p.h.

References QQmlRefCount::addref(), QQmlRefCount::count(), and QQmlRefCounted< T >::release().

+ Here is the call graph for this function:

◆ setType()

void QV4::ResolvedTypeReference::setType ( QQmlType  type)
inline

Definition at line 47 of file qv4resolvedtypereference_p.h.

◆ setTypePropertyCache()

void QV4::ResolvedTypeReference::setTypePropertyCache ( QQmlPropertyCache::ConstPtr  cache)
inline

Definition at line 82 of file qv4resolvedtypereference_p.h.

References cache.

Referenced by QQmlPropertyCacheCreator< ObjectContainer >::buildMetaObjectsIncrementally().

+ Here is the caller graph for this function:

◆ setVersion()

void QV4::ResolvedTypeReference::setVersion ( QTypeRevision  version)
inline

Definition at line 88 of file qv4resolvedtypereference_p.h.

References version().

+ Here is the call graph for this function:

◆ type()

QQmlType QV4::ResolvedTypeReference::type ( ) const
inline

Definition at line 46 of file qv4resolvedtypereference_p.h.

Referenced by icutils::fillAdjacencyListForInlineComponents().

+ Here is the caller graph for this function:

◆ typePropertyCache()

QQmlPropertyCache::ConstPtr QV4::ResolvedTypeReference::typePropertyCache ( ) const
inline

Definition at line 81 of file qv4resolvedtypereference_p.h.

Referenced by QQmlPropertyCacheCreator< ObjectContainer >::buildMetaObjectsIncrementally().

+ Here is the caller graph for this function:

◆ version()

QTypeRevision QV4::ResolvedTypeReference::version ( ) const
inline

Definition at line 87 of file qv4resolvedtypereference_p.h.

Referenced by setVersion().

+ Here is the caller graph for this function:

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