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
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 *)
 

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 101 of file qqmlvmemetaobject_p.h.

Member Enumeration Documentation

◆ MetaObjectValidity

Enumerator
MetaObjectValid 
MetaObjectInvalid 

Definition at line 155 of file qqmlvmemetaobject_p.h.

Constructor & Destructor Documentation

◆ QQmlInterceptorMetaObject()

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

Definition at line 252 of file qqmlvmemetaobject.cpp.

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

+ Here is the call graph for this function:

◆ ~QQmlInterceptorMetaObject()

QQmlInterceptorMetaObject::~QQmlInterceptorMetaObject ( )
override

Definition at line 270 of file qqmlvmemetaobject.cpp.

Member Function Documentation

◆ get()

QQmlInterceptorMetaObject * QQmlInterceptorMetaObject::get ( QObject * obj)
inlinestatic

Definition at line 163 of file qqmlvmemetaobject_p.h.

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

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 134 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 116 of file qqmlvmemetaobject_p.h.

References it.

◆ invalidate()

void QQmlInterceptorMetaObject::invalidate ( )
inline

Definition at line 127 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 291 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 114 of file qqmlvmemetaobject_p.h.

References cache.

◆ registerInterceptor()

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

Definition at line 275 of file qqmlvmemetaobject.cpp.

References Q_UNLIKELY, and qWarning.

◆ toDynamicMetaObject()

QMetaObject * QQmlInterceptorMetaObject::toDynamicMetaObject ( QObject * o)
overridevirtual

Implements QDynamicMetaObjectData.

Definition at line 402 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: