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
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 125 of file qv4persistent_p.h.

Constructor & Destructor Documentation

◆ WeakValue() [1/3]

QV4::WeakValue::WeakValue ( )
inline

Definition at line 128 of file qv4persistent_p.h.

◆ WeakValue() [2/3]

WeakValue::WeakValue ( const WeakValue & other)

Definition at line 348 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 357 of file qv4persistent.cpp.

References engine(), and value().

+ Here is the call graph for this function:

◆ ~WeakValue()

WeakValue::~WeakValue ( )

Definition at line 381 of file qv4persistent.cpp.

Member Function Documentation

◆ as()

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

Definition at line 152 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 146 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 166 of file qv4persistent_p.h.

Referenced by QQmlData::destroyed().

+ Here is the caller graph for this function:

◆ engine()

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

Definition at line 158 of file qv4persistent_p.h.

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

+ Here is the caller graph for this function:

◆ isNullOrUndefined()

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

Definition at line 165 of file qv4persistent_p.h.

◆ isUndefined()

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

Definition at line 164 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 441 of file qv4persistent.cpp.

References QV4::Value::mark().

Referenced by QQmlVMEMetaObject::mark().

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

◆ operator=()

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

Definition at line 363 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 WeakValue::set ( ExecutionEngine * engine,
const Value & value )

Definition at line 397 of file qv4persistent.cpp.

References engine(), QV4::MemoryManager::gcStateMachine, QV4::HandleQObjectWrappers, QV4::WriteBarrier::markCustom(), QV4::EngineBase::memoryManager, and value().

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

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

◆ set() [2/3]

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

Definition at line 424 of file qv4persistent.cpp.

References engine(), QV4::MemoryManager::gcStateMachine, QV4::HandleQObjectWrappers, QV4::WriteBarrier::markCustom(), and QV4::EngineBase::memoryManager.

+ Here is the call graph for this function:

◆ set() [3/3]

void WeakValue::set ( ExecutionEngine * engine,
ReturnedValue value )

Definition at line 410 of file qv4persistent.cpp.

References engine(), QV4::Value::fromReturnedValue(), QV4::MemoryManager::gcStateMachine, QV4::HandleQObjectWrappers, QV4::WriteBarrier::markCustom(), QV4::EngineBase::memoryManager, and value().

+ Here is the call graph for this function:

◆ value()

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

Definition at line 140 of file qv4persistent_p.h.

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

+ Here is the caller graph for this function:

◆ valueRef()

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

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