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

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
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 176 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 449 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 1471 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()

◆ connectAlias()

void QQmlVMEMetaObject::connectAlias ( int aliasId)

Definition at line 1438 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 1458 of file qqmlvmemetaobject.cpp.

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

+ Here is the call graph for this function:

◆ ensureQObjectWrapper()

void QQmlVMEMetaObject::ensureQObjectWrapper ( )

Definition at line 1394 of file qqmlvmemetaobject.cpp.

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

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

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

Referenced by cacheForObject(), getForMethod(), getForProperty(), getForSignal(), QV4::QObjectWrapper::getProperty(), 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 1486 of file qqmlvmemetaobject.cpp.

References get(), o, 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 1476 of file qqmlvmemetaobject.cpp.

References get(), o, 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 1500 of file qqmlvmemetaobject.cpp.

References get(), o, and Q_ASSERT.

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 1510 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:

◆ initPropertyAsList()

void QQmlVMEMetaObject::initPropertyAsList ( int id) const

Definition at line 685 of file qqmlvmemetaobject.cpp.

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

Referenced by metaCall().

+ 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 104 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::activateSignal(), QQmlVMEResolvedList::append(), 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 111 of file qqmlvmemetaobject.cpp.

References QQmlVMEResolvedList::append(), 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 126 of file qqmlvmemetaobject.cpp.

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

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

References QQmlVMEResolvedList::clear().

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

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

+ Here is the call graph for this function:

◆ metaCall()

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

Reimplemented from QQmlInterceptorMetaObject.

Definition at line 714 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(), QVariant::Private::data, QV4::CompiledData::Date, QV4::CompiledData::DateTime, QQmlEnginePrivate::dereferenceScarceResources(), QMetaType::destruct(), 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(), QV4::Scope::hasException(), QV4::CompiledData::Alias::hasFlag(), QQmlPropertyData::HasInternalIndex, QQmlContextData::idValue(), initPropertyAsList(), 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(), QBiPointer< T, T2 >::isT1(), list_append(), list_at(), list_clear(), list_count(), list_removeLast(), list_replace(), QV4::CompiledData::Alias::localAliasIndex, QMetaObject::metacall(), QDynamicMetaObjectData::metaCall(), 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(), 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(), readPropertyAsPointF(), readPropertyAsRectF(), readPropertyAsSizeF(), readPropertyAsString(), readPropertyAsTime(), readPropertyAsUrl(), readPropertyAsVariant(), QV4::CompiledData::Real, QV4::CompiledData::Rect, QQmlEnginePrivate::referenceScarceResources(), QV4::CompiledData::RegExp, QQmlPropertyPrivate::removeBinding(), QQmlPropertyData::RemoveBindingOnAliasWrite, QMetaObject::ResetProperty, QQmlError::setDescription(), 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 1191 of file qqmlvmemetaobject.cpp.

References compiledObject, ctxt, 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 303 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

Referenced by activate(), QQmlVMEResolvedList::activateSignal(), connectAliasSignal(), 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 318 of file qqmlvmemetaobject_p.h.

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

Referenced by 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 457 of file qqmlvmemetaobject.cpp.

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

Referenced by initPropertyAsList(), metaCall(), method(), readPropertyAsBool(), readPropertyAsDate(), readPropertyAsDateTime(), readPropertyAsDouble(), readPropertyAsInt(), 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 298 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

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

+ Here is the caller graph for this function:

◆ readPropertyAsBool()

bool QQmlVMEMetaObject::readPropertyAsBool ( int id) const

Definition at line 532 of file qqmlvmemetaobject.cpp.

References QV4::StaticValue::booleanValue(), 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 585 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 613 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 545 of file qqmlvmemetaobject.cpp.

References 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 519 of file qqmlvmemetaobject.cpp.

References 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:

◆ readPropertyAsPointF()

QPointF QQmlVMEMetaObject::readPropertyAsPointF ( int id) const

Definition at line 657 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 671 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), engine, QV4::QObjectWrapper::object(), 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 700 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 643 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 558 of file qqmlvmemetaobject.cpp.

References 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 599 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 571 of file qqmlvmemetaobject.cpp.

References QV4::Value::as(), 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 1215 of file qqmlvmemetaobject.cpp.

References 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 1205 of file qqmlvmemetaobject.cpp.

References QV4::CompiledData::Property::commonType(), compiledObject, 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 1357 of file qqmlvmemetaobject.cpp.

References compiledObject, engine, methodOffset(), QV4::CompiledData::Object::nAliases, QV4::CompiledData::Object::nFunctions, QV4::CompiledData::Object::nProperties, QV4::CompiledData::Object::nSignals, parentVMEMetaObject(), propertyAndMethodStorageAsMemberData(), Q_ASSERT, 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 1384 of file qqmlvmemetaobject.cpp.

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

Referenced by setVMEProperty().

+ 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 313 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 308 of file qqmlvmemetaobject_p.h.

References QQmlInterceptorMetaObject::cache.

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

+ Here is the caller graph for this function:

◆ vmeMethod()

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

Definition at line 1343 of file qqmlvmemetaobject.cpp.

References 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 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 1375 of file qqmlvmemetaobject.cpp.

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

Referenced by 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 478 of file qqmlvmemetaobject.cpp.

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

+ Here is the call graph for this function:

◆ writeProperty() [2/7]

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

Definition at line 492 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 245 of file qqmlvmemetaobject_p.h.

References engine.

◆ writeProperty() [4/7]

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

Definition at line 485 of file qqmlvmemetaobject.cpp.

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

+ Here is the call graph for this function:

◆ writeProperty() [5/7]

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

Definition at line 471 of file qqmlvmemetaobject.cpp.

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

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 501 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 1230 of file qqmlvmemetaobject.cpp.

References activate(), QList< T >::append(), QV4::Value::as(), QV4::CompiledData::Property::commonType(), compiledObject, QV4::ReferenceObject::detached(), engine, getQObjectGuardForProperty(), methodOffset(), propertyAndMethodStorageAsMemberData(), QV4::CompiledData::Object::propertyTable(), Q_ASSERT, QV4::ReferenceObject::readReference(), QV4::VariantObject::removeVmePropertyReference(), QV4::Object::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 282 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: