Qt 6.x
The Qt SDK
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 methodOffset () const
 
int signalOffset () const
 
int signalCount () 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
 
QVector< QQmlGuard< QObject > > * readPropertyAsList (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 (int aliasId)
 
QV4::ReturnedValue method (int) const
 
QV4::ReturnedValue readVarProperty (int) const
 
void writeVarProperty (int, const QV4::Value &)
 
QVariant readPropertyAsVariant (int) const
 
void writeProperty (int, const QVariant &)
 
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)
 
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 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
 
QQmlRefPointer< QV4::ExecutableCompilationUnitcompilationUnit
 
const QV4::CompiledData::ObjectcompiledObject
 
- 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
 
- Protected Member Functions inherited from QQmlInterceptorMetaObject
int metaCall (QObject *o, QMetaObject::Call c, int id, void **a) override
 
bool intercept (QMetaObject::Call c, int id, void **a)
 

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

◆ ~QQmlVMEMetaObject()

QQmlVMEMetaObject::~QQmlVMEMetaObject ( )
override

Definition at line 415 of file qqmlvmemetaobject.cpp.

References aliasEndpoints, QBiPointer< T, T2 >::asT1(), QBiPointer< T, T2 >::isT1(), QDynamicMetaObjectData::objectDestroyed(), QQmlInterceptorMetaObject::parent, qDeleteAll(), and varObjectGuards.

+ Here is the call graph for this function:

Member Function Documentation

◆ activate()

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

index is in the method index range (QMetaMethod::methodIndex()).

Definition at line 1432 of file qqmlvmemetaobject.cpp.

References QMetaObject::activate(), args, methodOffset(), and signalOffset().

Referenced by QQmlVMEResolvedList::activateSignal(), metaCall(), QQmlDesignerMetaObject::openMetaCall(), QQmlVMEMetaObjectEndpoint::tryConnect(), writeProperty(), and writeVarProperty().

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

◆ aliasTarget()

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

◆ connectAlias()

void QQmlVMEMetaObject::connectAlias ( int  aliasId)

Definition at line 1399 of file qqmlvmemetaobject.cpp.

References aliasEndpoints, QV4::CompiledData::Object::aliasTable(), compiledObject, QQmlNotifierEndpoint::connect(), ctxt, QTaggedPointer< T, Tag >::data(), QQmlContextData::idValueBindings(), QQmlVMEMetaObjectEndpoint::metaObject, QV4::CompiledData::Object::nAliases, Q_ASSERT, QV4::CompiledData::Alias::targetObjectId(), and QQmlVMEMetaObjectEndpoint::tryConnect().

Referenced by connectAliasSignal(), and metaCall().

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

◆ connectAliasSignal()

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

Definition at line 1419 of file qqmlvmemetaobject.cpp.

References compiledObject, connectAlias(), methodOffset(), QV4::CompiledData::Object::nAliases, QV4::CompiledData::Object::nProperties, Q_ASSERT, and signalOffset().

Referenced by flush_vme_signal().

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

◆ ensureQObjectWrapper()

void QQmlVMEMetaObject::ensureQObjectWrapper ( )

Definition at line 1355 of file qqmlvmemetaobject.cpp.

References QQmlInterceptorMetaObject::cache, engine, Q_ASSERT, and QV4::QObjectWrapper::wrap().

Referenced by QQmlVMEMetaObject().

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

◆ get()

QQmlVMEMetaObject * QQmlVMEMetaObject::get ( QObject o)
inlinestatic

Definition at line 262 of file qqmlvmemetaobject_p.h.

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

Referenced by cacheForObject(), getForMethod(), getForProperty(), getForSignal(), QV4::QObjectWrapper::getProperty(), QV4::Heap::QObjectWrapper::markObjects(), QV4::QObjectWrapper::setProperty(), QQmlBinding::slowWrite(), QQmlBinding::slowWrite(), and QQmlPropertyPrivate::write().

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

◆ getForMethod()

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

Definition at line 1447 of file qqmlvmemetaobject.cpp.

References get(), methodOffset(), o, parentVMEMetaObject(), and Q_ASSERT.

Referenced by flush_vme_signal().

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

◆ getForProperty()

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

Definition at line 1437 of file qqmlvmemetaobject.cpp.

References get(), o, parentVMEMetaObject(), propOffset(), and Q_ASSERT.

Referenced by QQmlPropertyPrivate::findAliasTarget(), and QQmlAbstractBinding::setTarget().

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

◆ 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 1461 of file qqmlvmemetaobject.cpp.

References get(), o, parentVMEMetaObject(), Q_ASSERT, and signalOffset().

Referenced by flush_vme_signal().

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

◆ getQObjectGuardForProperty()

QQmlVMEVariantQObjectPtr * QQmlVMEMetaObject::getQObjectGuardForProperty ( int  index) const

Definition at line 1471 of file qqmlvmemetaobject.cpp.

References QList< T >::constBegin(), QList< T >::constEnd(), it, and varObjectGuards.

Referenced by writeProperty(), and writeVarProperty().

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

◆ list_append()

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

Definition at line 76 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::activateSignal(), QQmlVMEResolvedList::list(), and o.

Referenced by metaCall(), and QQmlPropertyPrivate::write().

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

◆ list_append_nosignal()

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

Definition at line 83 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::list(), and o.

Referenced by QQmlPropertyPrivate::write().

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

◆ list_clear()

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

Definition at line 98 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::activateSignal(), and QQmlVMEResolvedList::list().

Referenced by metaCall(), and QQmlPropertyPrivate::write().

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

◆ list_clear_nosignal()

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

Definition at line 105 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::list().

Referenced by QQmlPropertyPrivate::write().

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

◆ mark()

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

Definition at line 1361 of file qqmlvmemetaobject.cpp.

References QV4::MarkStack::engine(), engine, QV4::WeakValue::markOnce(), QQmlInterceptorMetaObject::parent, parentVMEMetaObject(), and propertyAndMethodStorage.

Referenced by QV4::Heap::QObjectWrapper::markObjects().

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

◆ metaCall()

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

Reimplemented from QQmlInterceptorMetaObject.

Definition at line 681 of file qqmlvmemetaobject.cpp.

References activate(), QV4::CompiledData::Alias::AliasPointsToPointerObject, QV4::CompiledData::Object::aliasTable(), arg, arguments, QV4::Value::as(), QBiPointer< T, T2 >::asT1(), QMetaObject::BindableProperty, QV4::CompiledData::Bool, QQmlInterceptorMetaObject::cache, QV4::ExecutionEngine::catchExceptionAsQmlError(), QV4::CompiledData::Property::commonType(), compiledObject, connectAlias(), QVariant::constData(), QMetaType::construct(), QMetaType::convert(), QQmlPropertyIndex::coreIndex(), ctxt, QVariant::d, QVariant::data(), QV4::MemberData::data(), QVariant::Private::data, QV4::CompiledData::Date, QV4::CompiledData::DateTime, QQmlEnginePrivate::dereferenceScarceResources(), QMetaType::destruct(), e, QV4::CompiledData::Alias::encodedMetaPropertyIndex, QV4::Scope::engine, QQmlContextData::engine(), engine, QMetaType::equals(), error, QMetaType::flags(), QV4::SequencePrototype::fromData(), QQmlPropertyIndex::fromEncoded(), QString::fromUtf8(), function, QObjectPrivate::get(), QQmlData::get(), QQmlEnginePrivate::get(), QV4::SequencePrototype::getRawContainerPtr(), QQmlData::hasBindingBit(), QV4::Scope::hasException(), QV4::CompiledData::Alias::hasFlag(), QQmlPropertyData::HasInternalIndex, QQmlContextData::idValue(), QQmlGadgetPtrWrapper::instance(), QV4::CompiledData::Int, QQmlInterceptorMetaObject::intercept(), QV4::CompiledData::Invalid, QMetaObject::InvokeMetaMethod, QV4::CompiledData::Alias::isAliasToLocalAlias(), QV4::StaticValue::isNull(), QQmlGuardedContextData::isNull(), QV4::CompiledData::Alias::isObjectAlias(), QMetaType::IsQmlList, QQmlPropertyData::isQObject(), QQmlType::isSequentialContainer(), QBiPointer< T, T2 >::isT1(), list_append(), list_at(), list_clear(), list_count(), list_removeLast(), list_replace(), QV4::CompiledData::Alias::localAliasIndex, QMetaObject::metacall(), QDynamicMetaObjectData::metaCall(), QObjectData::metaObject, QQmlInterceptorMetaObject::metaObject, QVariant::metaType(), QMetaObject::method(), method, methodOffset(), QMetaMethod::methodSignature(), mo, QV4::CompiledData::Object::nAliases, QMetaType::name(), QV4::ExecutionEngine::newVariantObject(), QV4::CompiledData::Object::nFunctions, QV4::CompiledData::Object::nProperties, QV4::CompiledData::Object::nSignals, o, QQmlInterceptorMetaObject::parent, QV4::CompiledData::Point, property, propertyAndMethodStorageAsMemberData(), QQmlData::propertyCache, QV4::CompiledData::Object::propertyTable(), propOffset(), QQmlPropertyData::propType(), Q_ASSERT, Q_UNLIKELY, Q_UNUSED, QQmlMetaType::qmlListType(), qmlWarning(), QStringLiteral, QQmlGadgetPtrWrapper::read(), QMetaObject::ReadProperty, readPropertyAsBool(), readPropertyAsDate(), readPropertyAsDateTime(), readPropertyAsDouble(), readPropertyAsInt(), readPropertyAsList(), readPropertyAsPointF(), readPropertyAsRectF(), readPropertyAsSizeF(), readPropertyAsString(), readPropertyAsTime(), readPropertyAsUrl(), readPropertyAsVariant(), QV4::CompiledData::Real, QV4::CompiledData::Rect, QQmlEnginePrivate::referenceScarceResources(), QV4::CompiledData::RegExp, QQmlPropertyPrivate::removeBinding(), QQmlPropertyData::RemoveBindingOnAliasWrite, QMetaObject::ResetProperty, QV4::MemberData::set(), signalCount(), QList< T >::size(), QV4::CompiledData::Size, QV4::CompiledData::String, QV4::CompiledData::Alias::targetObjectId(), QV4::CompiledData::Time, QV4::Encode::undefined(), QV4::CompiledData::Url, QQmlPropertyIndex::valueTypeIndex(), QV4::CompiledData::Var, variant, QV4::CompiledData::Void, QQmlEnginePrivate::warning(), wrap(), QQmlGadgetPtrWrapper::write(), QMetaObject::WriteProperty, and writeProperty().

◆ method()

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

Definition at line 1152 of file qqmlvmemetaobject.cpp.

References compiledObject, ctxt, QV4::MemberData::data(), QQmlGuardedContextData::isNull(), QQmlContextData::isValid(), QV4::CompiledData::Object::nProperties, propertyAndMethodStorageAsMemberData(), qWarning, and QV4::Encode::undefined().

+ Here is the call graph for this function:

◆ methodOffset()

int QQmlVMEMetaObject::methodOffset ( ) const
inline

Definition at line 279 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

Referenced by activate(), QQmlVMEResolvedList::activateSignal(), connectAliasSignal(), getForMethod(), metaCall(), setVmeMethod(), QQmlVMEMetaObjectEndpoint::tryConnect(), vmeMethod(), writeProperty(), and writeVarProperty().

+ Here is the caller graph for this function:

◆ parentVMEMetaObject()

QQmlVMEMetaObject * QQmlVMEMetaObject::parentVMEMetaObject ( ) const
inline

Definition at line 294 of file qqmlvmemetaobject_p.h.

References QBiPointer< T, T2 >::asT1(), QBiPointer< T, T2 >::flag(), QBiPointer< T, T2 >::isT1(), and QQmlInterceptorMetaObject::parent.

Referenced by getForMethod(), getForProperty(), getForSignal(), mark(), setVmeMethod(), setVMEProperty(), vmeMethod(), and vmeProperty().

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

◆ propertyAndMethodStorageAsMemberData()

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

Definition at line 423 of file qqmlvmemetaobject.cpp.

References QV4::WeakValue::asManaged(), QV4::WeakValue::isUndefined(), propertyAndMethodStorage, and QV4::WeakValue::valueRef().

Referenced by metaCall(), method(), readPropertyAsBool(), readPropertyAsDate(), readPropertyAsDateTime(), readPropertyAsDouble(), readPropertyAsInt(), readPropertyAsList(), readPropertyAsPointF(), readPropertyAsQObject(), readPropertyAsRectF(), readPropertyAsSizeF(), readPropertyAsString(), readPropertyAsTime(), readPropertyAsUrl(), readPropertyAsVariant(), readVarProperty(), setVmeMethod(), writeProperty(), writeProperty(), writeProperty(), writeProperty(), writeProperty(), writeProperty(), and writeVarProperty().

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

◆ propOffset()

int QQmlVMEMetaObject::propOffset ( ) const
inline

Definition at line 274 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

Referenced by QQmlVMEResolvedList::QQmlVMEResolvedList(), aliasTarget(), getForProperty(), metaCall(), setVMEProperty(), and vmeProperty().

+ Here is the caller graph for this function:

◆ readPropertyAsBool()

bool QQmlVMEMetaObject::readPropertyAsBool ( int  id) const

Definition at line 498 of file qqmlvmemetaobject.cpp.

References QV4::StaticValue::booleanValue(), QV4::MemberData::data(), engine, QV4::StaticValue::isBoolean(), and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsDate()

QDate QQmlVMEMetaObject::readPropertyAsDate ( int  id) const

Definition at line 551 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsDateTime()

QDateTime QQmlVMEMetaObject::readPropertyAsDateTime ( int  id) const

Definition at line 579 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsDouble()

double QQmlVMEMetaObject::readPropertyAsDouble ( int  id) const

Definition at line 511 of file qqmlvmemetaobject.cpp.

References QV4::MemberData::data(), QV4::StaticValue::doubleValue(), engine, QV4::StaticValue::isDouble(), and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsInt()

int QQmlVMEMetaObject::readPropertyAsInt ( int  id) const

Definition at line 485 of file qqmlvmemetaobject.cpp.

References QV4::MemberData::data(), engine, QV4::StaticValue::integerValue(), QV4::StaticValue::isInt32(), and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsList()

QVector< QQmlGuard< QObject > > * QQmlVMEMetaObject::readPropertyAsList ( int  id) const

Definition at line 651 of file qqmlvmemetaobject.cpp.

References QV4::MemberData::data(), engine, QMetaType::fromType(), QV4::ExecutionEngine::newVariantObject(), propertyAndMethodStorageAsMemberData(), and QV4::MemberData::set().

Referenced by metaCall().

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

◆ readPropertyAsPointF()

QPointF QQmlVMEMetaObject::readPropertyAsPointF ( int  id) const

Definition at line 623 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsQObject()

QObject * QQmlVMEMetaObject::readPropertyAsQObject ( int  id) const

Definition at line 637 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, propertyAndMethodStorageAsMemberData(), and wrapper().

Referenced by writeProperty().

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

◆ readPropertyAsRectF()

QRectF QQmlVMEMetaObject::readPropertyAsRectF ( int  id) const

Definition at line 667 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsSizeF()

QSizeF QQmlVMEMetaObject::readPropertyAsSizeF ( int  id) const

Definition at line 609 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsString()

QString QQmlVMEMetaObject::readPropertyAsString ( int  id) const

Definition at line 524 of file qqmlvmemetaobject.cpp.

References QV4::MemberData::data(), engine, propertyAndMethodStorageAsMemberData(), and QV4::Value::stringValue().

Referenced by metaCall().

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

◆ readPropertyAsTime()

QTime QQmlVMEMetaObject::readPropertyAsTime ( int  id) const

Definition at line 565 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsUrl()

QUrl QQmlVMEMetaObject::readPropertyAsUrl ( int  id) const

Definition at line 537 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), QV4::MemberData::data(), engine, and propertyAndMethodStorageAsMemberData().

Referenced by metaCall().

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

◆ readPropertyAsVariant()

QVariant QQmlVMEMetaObject::readPropertyAsVariant ( int  id) const

Definition at line 1176 of file qqmlvmemetaobject.cpp.

References QV4::MemberData::data(), QVariant::fromValue(), propertyAndMethodStorageAsMemberData(), QV4::ExecutionEngine::toVariant(), and wrapper().

Referenced by metaCall(), and writeProperty().

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

◆ readVarProperty()

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

Definition at line 1166 of file qqmlvmemetaobject.cpp.

References QV4::StaticValue::asReturnedValue(), QV4::CompiledData::Property::commonType(), compiledObject, QV4::MemberData::data(), propertyAndMethodStorageAsMemberData(), QV4::CompiledData::Object::propertyTable(), Q_ASSERT, QV4::Value::undefinedValue(), and QV4::CompiledData::Var.

Referenced by vmeProperty().

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

◆ setVmeMethod()

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

Definition at line 1318 of file qqmlvmemetaobject.cpp.

References compiledObject, engine, function, methodOffset(), QV4::CompiledData::Object::nAliases, QV4::CompiledData::Object::nFunctions, QV4::CompiledData::Object::nProperties, QV4::CompiledData::Object::nSignals, parentVMEMetaObject(), propertyAndMethodStorageAsMemberData(), Q_ASSERT, QV4::MemberData::set(), and setVmeMethod().

Referenced by setVmeMethod().

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

◆ setVMEProperty()

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

Definition at line 1345 of file qqmlvmemetaobject.cpp.

References parentVMEMetaObject(), propOffset(), Q_ASSERT, setVMEProperty(), and writeVarProperty().

Referenced by QV4::QObjectWrapper::setProperty(), setVMEProperty(), QQmlBinding::slowWrite(), and QQmlBinding::slowWrite().

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

◆ signalCount()

int QQmlVMEMetaObject::signalCount ( ) const
inline

Definition at line 289 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

Referenced by metaCall().

+ Here is the caller graph for this function:

◆ signalOffset()

int QQmlVMEMetaObject::signalOffset ( ) const
inline

Definition at line 284 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

Referenced by activate(), connectAliasSignal(), getForSignal(), QQmlDesignerMetaObject::openMetaCall(), and QQmlDesignerMetaObject::setValue().

+ Here is the caller graph for this function:

◆ vmeMethod()

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

Definition at line 1304 of file qqmlvmemetaobject.cpp.

References QV4::StaticValue::asReturnedValue(), compiledObject, method, methodOffset(), QV4::CompiledData::Object::nAliases, QV4::CompiledData::Object::nFunctions, QV4::CompiledData::Object::nProperties, QV4::CompiledData::Object::nSignals, parentVMEMetaObject(), Q_ASSERT, QV4::Value::undefinedValue(), and vmeMethod().

Referenced by QV4::QObjectWrapper::getProperty(), and vmeMethod().

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

◆ vmeProperty()

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

Definition at line 1336 of file qqmlvmemetaobject.cpp.

References parentVMEMetaObject(), propOffset(), Q_ASSERT, readVarProperty(), and vmeProperty().

Referenced by QV4::QObjectWrapper::getProperty(), and vmeProperty().

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

◆ writeProperty() [1/7]

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

Definition at line 444 of file qqmlvmemetaobject.cpp.

References engine, QV4::Value::fromBoolean(), propertyAndMethodStorageAsMemberData(), and QV4::MemberData::set().

+ Here is the call graph for this function:

◆ writeProperty() [2/7]

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

Definition at line 458 of file qqmlvmemetaobject.cpp.

References engine, QV4::ExecutionEngine::newString(), and propertyAndMethodStorageAsMemberData().

+ Here is the call graph for this function:

◆ writeProperty() [3/7]

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

Definition at line 221 of file qqmlvmemetaobject_p.h.

References engine.

◆ writeProperty() [4/7]

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

Definition at line 451 of file qqmlvmemetaobject.cpp.

References engine, QV4::Value::fromDouble(), propertyAndMethodStorageAsMemberData(), and QV4::MemberData::set().

+ Here is the call graph for this function:

◆ writeProperty() [5/7]

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

Definition at line 437 of file qqmlvmemetaobject.cpp.

References engine, QV4::Value::fromInt32(), propertyAndMethodStorageAsMemberData(), and QV4::MemberData::set().

Referenced by metaCall(), and writeProperty().

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

◆ writeProperty() [6/7]

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

Definition at line 467 of file qqmlvmemetaobject.cpp.

References QList< T >::append(), engine, QV4::Value::fromReturnedValue(), getQObjectGuardForProperty(), propertyAndMethodStorageAsMemberData(), QQmlVMEVariantQObjectPtr::setGuardedValue(), varObjectGuards, and QV4::QObjectWrapper::wrap().

+ Here is the call graph for this function:

◆ writeProperty() [7/7]

◆ writeVarProperty()

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

Definition at line 1191 of file qqmlvmemetaobject.cpp.

References activate(), QList< T >::append(), QV4::Value::as(), QV4::CompiledData::Property::commonType(), compiledObject, QV4::MemberData::data(), QV4::ReferenceObject::detached(), engine, getQObjectGuardForProperty(), methodOffset(), propertyAndMethodStorageAsMemberData(), QV4::CompiledData::Object::propertyTable(), Q_ASSERT, QV4::ReferenceObject::readReference(), QV4::VariantObject::removeVmePropertyReference(), QV4::MemberData::set(), QQmlVMEVariantQObjectPtr::setGuardedValue(), QV4::CompiledData::Var, varObjectGuards, and wrapper().

Referenced by setVMEProperty().

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

Member Data Documentation

◆ aliasEndpoints

QQmlVMEMetaObjectEndpoint* QQmlVMEMetaObject::aliasEndpoints

◆ compilationUnit

QQmlRefPointer<QV4::ExecutableCompilationUnit> QQmlVMEMetaObject::compilationUnit

Definition at line 258 of file qqmlvmemetaobject_p.h.

Referenced by QQmlVMEMetaObject().

◆ compiledObject

◆ ctxt

◆ engine

◆ propertyAndMethodStorage

QV4::WeakValue QQmlVMEMetaObject::propertyAndMethodStorage

◆ varObjectGuards

QList<QQmlVMEVariantQObjectPtr *> QQmlVMEMetaObject::varObjectGuards

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