Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::WeakValue Class Reference

#include <qv4persistent_p.h>

+ Collaboration diagram for QV4::WeakValue:

Public Member Functions

 WeakValue ()
 
 WeakValue (const WeakValue &other)
 
 WeakValue (ExecutionEngine *engine, const Value &value)
 
WeakValueoperator= (const WeakValue &other)
 
 ~WeakValue ()
 
void set (ExecutionEngine *engine, const Value &value)
 
void set (ExecutionEngine *engine, ReturnedValue value)
 
void set (ExecutionEngine *engine, Heap::Base *obj)
 
ReturnedValue value () const
 
ValuevalueRef () const
 
ManagedasManaged () const
 
template<typename T >
T * as () const
 
ExecutionEngineengine () const
 
bool isUndefined () const
 
bool isNullOrUndefined () const
 
void clear ()
 
void markOnce (MarkStack *markStack)
 

Detailed Description

Definition at line 122 of file qv4persistent_p.h.

Constructor & Destructor Documentation

◆ WeakValue() [1/3]

QV4::WeakValue::WeakValue ( )
inline

Definition at line 125 of file qv4persistent_p.h.

◆ WeakValue() [2/3]

WeakValue::WeakValue ( const WeakValue other)

Definition at line 324 of file qv4persistent.cpp.

References other().

+ Here is the call graph for this function:

◆ WeakValue() [3/3]

WeakValue::WeakValue ( ExecutionEngine engine,
const Value value 
)

Definition at line 333 of file qv4persistent.cpp.

References engine(), and value().

+ Here is the call graph for this function:

◆ ~WeakValue()

WeakValue::~WeakValue ( )

Definition at line 357 of file qv4persistent.cpp.

Member Function Documentation

◆ as()

template<typename T >
T * QV4::WeakValue::as ( ) const
inline

Definition at line 164 of file qv4persistent_p.h.

Referenced by QV4::RegExp::create().

+ Here is the caller graph for this function:

◆ asManaged()

Managed * QV4::WeakValue::asManaged ( ) const
inline

Definition at line 158 of file qv4persistent_p.h.

References QV4::Value::managed().

Referenced by QQmlVMEResolvedList::QQmlVMEResolvedList(), and QQmlVMEMetaObject::propertyAndMethodStorageAsMemberData().

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

◆ clear()

void QV4::WeakValue::clear ( )
inline

Definition at line 178 of file qv4persistent_p.h.

Referenced by QQmlData::destroyed(), and QV4::QObjectWrapper::destroyObject().

+ Here is the caller graph for this function:

◆ engine()

ExecutionEngine * QV4::WeakValue::engine ( ) const
inline

Definition at line 170 of file qv4persistent_p.h.

Referenced by WeakValue(), and operator=().

+ Here is the caller graph for this function:

◆ isNullOrUndefined()

bool QV4::WeakValue::isNullOrUndefined ( ) const
inline

Definition at line 177 of file qv4persistent_p.h.

Referenced by QQmlListModel::get().

+ Here is the caller graph for this function:

◆ isUndefined()

bool QV4::WeakValue::isUndefined ( ) const
inline

Definition at line 176 of file qv4persistent_p.h.

Referenced by QQmlVMEResolvedList::QQmlVMEResolvedList(), and QQmlVMEMetaObject::propertyAndMethodStorageAsMemberData().

+ Here is the caller graph for this function:

◆ markOnce()

void WeakValue::markOnce ( MarkStack markStack)

Definition at line 367 of file qv4persistent.cpp.

Referenced by QQmlVMEMetaObject::mark(), and QV4::QObjectWrapper::markWrapper().

+ Here is the caller graph for this function:

◆ operator=()

WeakValue & WeakValue::operator= ( const WeakValue other)

Definition at line 339 of file qv4persistent.cpp.

References engine(), other(), Q_ASSERT, and QV4::Encode::undefined().

+ Here is the call graph for this function:

◆ set() [1/3]

void QV4::WeakValue::set ( ExecutionEngine engine,
const Value value 
)
inline

Definition at line 131 of file qv4persistent_p.h.

References engine.

Referenced by QQmlVMEMetaObject::QQmlVMEMetaObject(), QV4::RegExp::create(), and QQmlListModel::get().

+ Here is the caller graph for this function:

◆ set() [2/3]

void QV4::WeakValue::set ( ExecutionEngine engine,
Heap::Base obj 
)
inline

Definition at line 145 of file qv4persistent_p.h.

References engine.

◆ set() [3/3]

void QV4::WeakValue::set ( ExecutionEngine engine,
ReturnedValue  value 
)
inline

Definition at line 138 of file qv4persistent_p.h.

References engine.

◆ value()

ReturnedValue QV4::WeakValue::value ( ) const
inline

Definition at line 152 of file qv4persistent_p.h.

Referenced by WeakValue(), QQmlListModel::get(), and QV4::MultiplyWrappedQObjectMap::value().

+ Here is the caller graph for this function:

◆ valueRef()

Value * QV4::WeakValue::valueRef ( ) const
inline

Definition at line 155 of file qv4persistent_p.h.

Referenced by QQmlVMEResolvedList::QQmlVMEResolvedList(), and QQmlVMEMetaObject::propertyAndMethodStorageAsMemberData().

+ Here is the caller graph for this function:

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