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
QQmlVMEMetaObject Class Reference

#include <qqmlvmemetaobject_p.h>

Inheritance diagram for QQmlVMEMetaObject:
Collaboration diagram for QQmlVMEMetaObject:

Public Member Functions

 QQmlVMEMetaObject (QV4::ExecutionEngine *engine, QObject *obj, const QQmlPropertyCache::ConstPtr &cache, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &qmlCompilationUnit, int qmlObjectId)
 ~QQmlVMEMetaObject () override
bool aliasTarget (int index, QObject **target, int *coreIndex, int *valueTypeIndex) const
QV4::ReturnedValue vmeMethod (int index) const
void setVmeMethod (int index, const QV4::Value &function)
QV4::ReturnedValue vmeProperty (int index) const
void setVMEProperty (int index, const QV4::Value &v)
void connectAliasSignal (int index, bool indexInSignalRange)
int propOffset () const
int propCount () const
int aliasOffset () const
int aliasCount () const
int signalOffset () const
int signalCount () const
int methodOffset () const
int methodCount () const
QV4::MemberDatapropertyAndMethodStorageAsMemberData () const
int readPropertyAsInt (int id) const
bool readPropertyAsBool (int id) const
double readPropertyAsDouble (int id) const
QString readPropertyAsString (int id) const
QSizeF readPropertyAsSizeF (int id) const
QPointF readPropertyAsPointF (int id) const
QUrl readPropertyAsUrl (int id) const
QDate readPropertyAsDate (int id) const
QTime readPropertyAsTime (int id) const
QDateTime readPropertyAsDateTime (int id) const
QRectF readPropertyAsRectF (int id) const
QObjectreadPropertyAsQObject (int id) const
void initPropertyAsList (int id) const
void writeProperty (int id, int v)
void writeProperty (int id, bool v)
void writeProperty (int id, double v)
void writeProperty (int id, const QString &v)
template<typename VariantCompatible>
void writeProperty (int id, const VariantCompatible &v)
void writeProperty (int id, QObject *v)
void ensureQObjectWrapper ()
void mark (QV4::MarkStack *markStack)
void connectAlias (const QV4::CompiledData::Object *compiledObject, int aliasId)
QV4::ReturnedValue method (int) const
QV4::ReturnedValue readVarProperty (int) const
void writeVarProperty (int, const QV4::Value &)
QVariant readPropertyAsVariant (int) const
QQmlVMEMetaObjectparentVMEMetaObject () const
void activate (QObject *, int, void **)
QQmlVMEVariantQObjectPtrgetQObjectGuardForProperty (int) const
Public Member Functions inherited from QQmlInterceptorMetaObject
 QQmlInterceptorMetaObject (QObject *obj, const QQmlPropertyCache::ConstPtr &cache)
 ~QQmlInterceptorMetaObject () override
void registerInterceptor (QQmlPropertyIndex index, QQmlPropertyValueInterceptor *interceptor)
const QMetaObjecttoDynamicMetaObject (QObject *o) const 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 QQmlVMEMetaObjectget (QObject *o)
static QQmlVMEMetaObjectgetForProperty (QObject *o, int coreIndex)
static QQmlVMEMetaObjectgetForMethod (QObject *o, int coreIndex)
static QQmlVMEMetaObjectgetForSignal (QObject *o, int coreIndex)
static void list_append (QQmlListProperty< QObject > *prop, QObject *o)
static void list_clear (QQmlListProperty< QObject > *prop)
static void list_append_nosignal (QQmlListProperty< QObject > *prop, QObject *o)
static void list_clear_nosignal (QQmlListProperty< QObject > *prop)
Static Public Member Functions inherited from QQmlInterceptorMetaObject
static QQmlInterceptorMetaObjectget (QObject *obj)

Public Attributes

QV4::ExecutionEngineengine
QQmlGuardedContextData ctxt
QQmlVMEMetaObjectEndpointaliasEndpoints
QV4::WeakValue propertyAndMethodStorage
QList< QQmlVMEVariantQObjectPtr * > varObjectGuards
Public Attributes inherited from QQmlInterceptorMetaObject
QObjectobject = nullptr
QQmlPropertyCache::ConstPtr cache

Protected Member Functions

int metaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a) override
bool getListProperty (int id, QQmlListProperty< QObject > *target)
Protected Member Functions inherited from QQmlInterceptorMetaObject
bool intercept (QMetaObject::Call c, int id, void **a)

Friends

class QQmlVMEMetaObjectEndpoint

Additional Inherited Members

Protected Types inherited from QQmlInterceptorMetaObject
enum  MetaObjectValidity { MetaObjectValid , MetaObjectInvalid }
Protected Attributes inherited from QQmlInterceptorMetaObject
QBiPointer< QDynamicMetaObjectData, const QMetaObjectparent
QTaggedPointer< const QMetaObject, MetaObjectValiditymetaObject

Detailed Description

Definition at line 179 of file qqmlvmemetaobject_p.h.

Constructor & Destructor Documentation

◆ QQmlVMEMetaObject()

QQmlVMEMetaObject::QQmlVMEMetaObject ( QV4::ExecutionEngine * engine,
QObject * obj,
const QQmlPropertyCache::ConstPtr & cache,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & qmlCompilationUnit,
int qmlObjectId )

Definition at line 436 of file qqmlvmemetaobject.cpp.

◆ ~QQmlVMEMetaObject()

QQmlVMEMetaObject::~QQmlVMEMetaObject ( )
override

Definition at line 478 of file qqmlvmemetaobject.cpp.

Member Function Documentation

◆ activate()

void QQmlVMEMetaObject::activate ( QObject * object,
int index,
void ** args )

index is in the local signal index.

Definition at line 1537 of file qqmlvmemetaobject.cpp.

◆ aliasCount()

int QQmlVMEMetaObject::aliasCount ( ) const
inline

Definition at line 337 of file qqmlvmemetaobject_p.h.

◆ aliasOffset()

int QQmlVMEMetaObject::aliasOffset ( ) const
inline

Definition at line 331 of file qqmlvmemetaobject_p.h.

◆ aliasTarget()

bool QQmlVMEMetaObject::aliasTarget ( int index,
QObject ** target,
int * coreIndex,
int * valueTypeIndex ) const

Definition at line 1467 of file qqmlvmemetaobject.cpp.

◆ connectAlias()

void QQmlVMEMetaObject::connectAlias ( const QV4::CompiledData::Object * compiledObject,
int aliasId )

Definition at line 1501 of file qqmlvmemetaobject.cpp.

◆ connectAliasSignal()

void QQmlVMEMetaObject::connectAliasSignal ( int index,
bool indexInSignalRange )

Definition at line 1521 of file qqmlvmemetaobject.cpp.

◆ ensureQObjectWrapper()

void QQmlVMEMetaObject::ensureQObjectWrapper ( )

Definition at line 1450 of file qqmlvmemetaobject.cpp.

◆ get()

QQmlVMEMetaObject * QQmlVMEMetaObject::get ( QObject * o)
inlinestatic

Definition at line 307 of file qqmlvmemetaobject_p.h.

◆ getForMethod()

QQmlVMEMetaObject * QQmlVMEMetaObject::getForMethod ( QObject * o,
int coreIndex )
static

Definition at line 1552 of file qqmlvmemetaobject.cpp.

◆ getForProperty()

QQmlVMEMetaObject * QQmlVMEMetaObject::getForProperty ( QObject * o,
int coreIndex )
static

Definition at line 1542 of file qqmlvmemetaobject.cpp.

◆ getForSignal()

QQmlVMEMetaObject * QQmlVMEMetaObject::getForSignal ( QObject * o,
int coreIndex )
static

coreIndex is in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().

Definition at line 1566 of file qqmlvmemetaobject.cpp.

◆ getListProperty()

bool QQmlVMEMetaObject::getListProperty ( int id,
QQmlListProperty< QObject > * target )
protected

Definition at line 1236 of file qqmlvmemetaobject.cpp.

◆ getQObjectGuardForProperty()

QQmlVMEVariantQObjectPtr * QQmlVMEMetaObject::getQObjectGuardForProperty ( int index) const

Definition at line 1576 of file qqmlvmemetaobject.cpp.

◆ initPropertyAsList()

void QQmlVMEMetaObject::initPropertyAsList ( int id) const

Definition at line 714 of file qqmlvmemetaobject.cpp.

◆ list_append()

void QQmlVMEMetaObject::list_append ( QQmlListProperty< QObject > * prop,
QObject * o )
static

Definition at line 108 of file qqmlvmemetaobject.cpp.

◆ list_append_nosignal()

void QQmlVMEMetaObject::list_append_nosignal ( QQmlListProperty< QObject > * prop,
QObject * o )
static

Definition at line 115 of file qqmlvmemetaobject.cpp.

◆ list_clear()

void QQmlVMEMetaObject::list_clear ( QQmlListProperty< QObject > * prop)
static

Definition at line 130 of file qqmlvmemetaobject.cpp.

◆ list_clear_nosignal()

void QQmlVMEMetaObject::list_clear_nosignal ( QQmlListProperty< QObject > * prop)
static

Definition at line 137 of file qqmlvmemetaobject.cpp.

◆ mark()

void QQmlVMEMetaObject::mark ( QV4::MarkStack * markStack)

Definition at line 1456 of file qqmlvmemetaobject.cpp.

◆ metaCall()

int QQmlVMEMetaObject::metaCall ( QObject * o,
QMetaObject::Call _c,
int _id,
void ** _a )
overrideprotectedvirtual

Reimplemented from QQmlInterceptorMetaObject.

Definition at line 743 of file qqmlvmemetaobject.cpp.

◆ method()

QV4::ReturnedValue QQmlVMEMetaObject::method ( int localMethodIndex) const

Definition at line 1274 of file qqmlvmemetaobject.cpp.

◆ methodCount()

int QQmlVMEMetaObject::methodCount ( ) const
inline

Definition at line 361 of file qqmlvmemetaobject_p.h.

◆ methodOffset()

int QQmlVMEMetaObject::methodOffset ( ) const
inline

Definition at line 355 of file qqmlvmemetaobject_p.h.

◆ parentVMEMetaObject()

QQmlVMEMetaObject * QQmlVMEMetaObject::parentVMEMetaObject ( ) const
inline

Definition at line 367 of file qqmlvmemetaobject_p.h.

◆ propCount()

int QQmlVMEMetaObject::propCount ( ) const
inline

Definition at line 325 of file qqmlvmemetaobject_p.h.

◆ propertyAndMethodStorageAsMemberData()

QV4::MemberData * QQmlVMEMetaObject::propertyAndMethodStorageAsMemberData ( ) const

Definition at line 486 of file qqmlvmemetaobject.cpp.

◆ propOffset()

int QQmlVMEMetaObject::propOffset ( ) const
inline

Definition at line 319 of file qqmlvmemetaobject_p.h.

◆ readPropertyAsBool()

bool QQmlVMEMetaObject::readPropertyAsBool ( int id) const

Definition at line 561 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDate()

QDate QQmlVMEMetaObject::readPropertyAsDate ( int id) const

Definition at line 614 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDateTime()

QDateTime QQmlVMEMetaObject::readPropertyAsDateTime ( int id) const

Definition at line 642 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDouble()

double QQmlVMEMetaObject::readPropertyAsDouble ( int id) const

Definition at line 574 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsInt()

int QQmlVMEMetaObject::readPropertyAsInt ( int id) const

Definition at line 548 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsPointF()

QPointF QQmlVMEMetaObject::readPropertyAsPointF ( int id) const

Definition at line 686 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsQObject()

QObject * QQmlVMEMetaObject::readPropertyAsQObject ( int id) const

Definition at line 700 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsRectF()

QRectF QQmlVMEMetaObject::readPropertyAsRectF ( int id) const

Definition at line 729 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsSizeF()

QSizeF QQmlVMEMetaObject::readPropertyAsSizeF ( int id) const

Definition at line 672 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsString()

QString QQmlVMEMetaObject::readPropertyAsString ( int id) const

Definition at line 587 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsTime()

QTime QQmlVMEMetaObject::readPropertyAsTime ( int id) const

Definition at line 628 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsUrl()

QUrl QQmlVMEMetaObject::readPropertyAsUrl ( int id) const

Definition at line 600 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsVariant()

QVariant QQmlVMEMetaObject::readPropertyAsVariant ( int id) const

Definition at line 1298 of file qqmlvmemetaobject.cpp.

◆ readVarProperty()

QV4::ReturnedValue QQmlVMEMetaObject::readVarProperty ( int id) const

Definition at line 1288 of file qqmlvmemetaobject.cpp.

◆ setVmeMethod()

void QQmlVMEMetaObject::setVmeMethod ( int index,
const QV4::Value & function )

Definition at line 1415 of file qqmlvmemetaobject.cpp.

◆ setVMEProperty()

void QQmlVMEMetaObject::setVMEProperty ( int index,
const QV4::Value & v )

Definition at line 1440 of file qqmlvmemetaobject.cpp.

◆ signalCount()

int QQmlVMEMetaObject::signalCount ( ) const
inline

Definition at line 349 of file qqmlvmemetaobject_p.h.

◆ signalOffset()

int QQmlVMEMetaObject::signalOffset ( ) const
inline

Definition at line 343 of file qqmlvmemetaobject_p.h.

◆ vmeMethod()

QV4::ReturnedValue QQmlVMEMetaObject::vmeMethod ( int index) const

Definition at line 1403 of file qqmlvmemetaobject.cpp.

◆ vmeProperty()

QV4::ReturnedValue QQmlVMEMetaObject::vmeProperty ( int index) const

Definition at line 1431 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [1/6]

void QQmlVMEMetaObject::writeProperty ( int id,
bool v )

Definition at line 507 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [2/6]

void QQmlVMEMetaObject::writeProperty ( int id,
const QString & v )

Definition at line 521 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [3/6]

template<typename VariantCompatible>
void QQmlVMEMetaObject::writeProperty ( int id,
const VariantCompatible & v )
inline

Definition at line 253 of file qqmlvmemetaobject_p.h.

◆ writeProperty() [4/6]

void QQmlVMEMetaObject::writeProperty ( int id,
double v )

Definition at line 514 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [5/6]

void QQmlVMEMetaObject::writeProperty ( int id,
int v )

Definition at line 500 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [6/6]

void QQmlVMEMetaObject::writeProperty ( int id,
QObject * v )

Definition at line 530 of file qqmlvmemetaobject.cpp.

◆ writeVarProperty()

void QQmlVMEMetaObject::writeVarProperty ( int id,
const QV4::Value & value )

Definition at line 1313 of file qqmlvmemetaobject.cpp.

◆ QQmlVMEMetaObjectEndpoint

friend class QQmlVMEMetaObjectEndpoint
friend

Definition at line 287 of file qqmlvmemetaobject_p.h.

Member Data Documentation

◆ aliasEndpoints

QQmlVMEMetaObjectEndpoint* QQmlVMEMetaObject::aliasEndpoints

Definition at line 223 of file qqmlvmemetaobject_p.h.

◆ ctxt

QQmlGuardedContextData QQmlVMEMetaObject::ctxt

Definition at line 212 of file qqmlvmemetaobject_p.h.

◆ engine

QV4::ExecutionEngine* QQmlVMEMetaObject::engine

Definition at line 211 of file qqmlvmemetaobject_p.h.

◆ propertyAndMethodStorage

QV4::WeakValue QQmlVMEMetaObject::propertyAndMethodStorage

Definition at line 225 of file qqmlvmemetaobject_p.h.

◆ varObjectGuards

QList<QQmlVMEVariantQObjectPtr *> QQmlVMEMetaObject::varObjectGuards

Definition at line 282 of file qqmlvmemetaobject_p.h.


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