Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlInterceptorMetaObject Class Reference

#include <qqmlvmemetaobject_p.h>

+ Inheritance diagram for QQmlInterceptorMetaObject:
+ Collaboration diagram for QQmlInterceptorMetaObject:

Public Member Functions

 QQmlInterceptorMetaObject (QObject *obj, const QQmlPropertyCache::ConstPtr &cache)
 
 ~QQmlInterceptorMetaObject () override
 
void registerInterceptor (QQmlPropertyIndex index, QQmlPropertyValueInterceptor *interceptor)
 
QMetaObjecttoDynamicMetaObject (QObject *o) override
 
QQmlPropertyCache::ConstPtr propertyCache () const
 
bool intercepts (QQmlPropertyIndex propertyIndex) const
 
void invalidate ()
 
- Public Member Functions inherited from QDynamicMetaObjectData
virtual ~QDynamicMetaObjectData ()
 
virtual void objectDestroyed (QObject *)
 
virtual QMetaObjecttoDynamicMetaObject (QObject *)=0
 
virtual int metaCall (QObject *, QMetaObject::Call, int _id, void **)=0
 

Static Public Member Functions

static QQmlInterceptorMetaObjectget (QObject *obj)
 

Public Attributes

QObjectobject = nullptr
 
QQmlPropertyCache::ConstPtr cache
 

Protected Types

enum  MetaObjectValidity { MetaObjectValid , MetaObjectInvalid }
 

Protected Member Functions

int metaCall (QObject *o, QMetaObject::Call c, int id, void **a) override
 
bool intercept (QMetaObject::Call c, int id, void **a)
 

Protected Attributes

QBiPointer< QDynamicMetaObjectData, const QMetaObjectparent
 
QTaggedPointer< const QMetaObject, MetaObjectValiditymetaObject
 

Detailed Description

Definition at line 77 of file qqmlvmemetaobject_p.h.

Member Enumeration Documentation

◆ MetaObjectValidity

Enumerator
MetaObjectValid 
MetaObjectInvalid 

Definition at line 131 of file qqmlvmemetaobject_p.h.

Constructor & Destructor Documentation

◆ QQmlInterceptorMetaObject()

QQmlInterceptorMetaObject::QQmlInterceptorMetaObject ( QObject obj,
const QQmlPropertyCache::ConstPtr cache 
)

Definition at line 224 of file qqmlvmemetaobject.cpp.

References QObjectPrivate::get(), QQmlData::get(), QQmlData::hasInterceptorMetaObject, QObjectData::metaObject, parent, and QBiPointer< T, T2 >::setFlagValue().

+ Here is the call graph for this function:

◆ ~QQmlInterceptorMetaObject()

QQmlInterceptorMetaObject::~QQmlInterceptorMetaObject ( )
override

Definition at line 242 of file qqmlvmemetaobject.cpp.

Member Function Documentation

◆ get()

QQmlInterceptorMetaObject * QQmlInterceptorMetaObject::get ( QObject obj)
inlinestatic

Definition at line 139 of file qqmlvmemetaobject_p.h.

References QObjectPrivate::get(), QQmlData::get(), and QObjectData::metaObject.

Referenced by QQmlAbstractBinding::updateCanUseAccessor().

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

◆ intercept()

bool QQmlInterceptorMetaObject::intercept ( QMetaObject::Call  c,
int  id,
void **  a 
)
inlineprotected

Definition at line 110 of file qqmlvmemetaobject_p.h.

References QMetaObject::BindableProperty, QQmlPropertyData::BypassInterceptor, and QMetaObject::WriteProperty.

Referenced by QQmlVMEMetaObject::metaCall(), and metaCall().

+ Here is the caller graph for this function:

◆ intercepts()

bool QQmlInterceptorMetaObject::intercepts ( QQmlPropertyIndex  propertyIndex) const
inline

Definition at line 92 of file qqmlvmemetaobject_p.h.

References it, and parent.

◆ invalidate()

void QQmlInterceptorMetaObject::invalidate ( )
inline

Definition at line 103 of file qqmlvmemetaobject_p.h.

References metaObject().

+ Here is the call graph for this function:

◆ metaCall()

int QQmlInterceptorMetaObject::metaCall ( QObject o,
QMetaObject::Call  c,
int  id,
void **  a 
)
overrideprotectedvirtual

Implements QDynamicMetaObjectData.

Reimplemented in QQmlVMEMetaObject.

Definition at line 263 of file qqmlvmemetaobject.cpp.

References intercept(), o, Q_ASSERT, and Q_UNUSED.

+ Here is the call graph for this function:

◆ propertyCache()

QQmlPropertyCache::ConstPtr QQmlInterceptorMetaObject::propertyCache ( ) const
inline

Definition at line 90 of file qqmlvmemetaobject_p.h.

References cache.

◆ registerInterceptor()

void QQmlInterceptorMetaObject::registerInterceptor ( QQmlPropertyIndex  index,
QQmlPropertyValueInterceptor interceptor 
)

Definition at line 247 of file qqmlvmemetaobject.cpp.

References Q_UNLIKELY, and qWarning.

◆ toDynamicMetaObject()

QMetaObject * QQmlInterceptorMetaObject::toDynamicMetaObject ( QObject o)
overridevirtual

Implements QDynamicMetaObjectData.

Definition at line 374 of file qqmlvmemetaobject.cpp.

References cache, QTaggedPointer< T, Tag >::data(), metaObject, MetaObjectInvalid, o, Q_UNLIKELY, stringCastMetaObject(), QMetaObject::superClass(), and QTaggedPointer< T, Tag >::tag().

Referenced by QQmlVMEResolvedList::QQmlVMEResolvedList().

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

Member Data Documentation

◆ cache

◆ metaObject

◆ object

◆ parent


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