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

Constructor & Destructor Documentation

◆ WeakValue() [1/3]

QV4::WeakValue::WeakValue ( )
inline

Definition at line 129 of file qv4persistent_p.h.

◆ WeakValue() [2/3]

WeakValue::WeakValue ( const WeakValue & other)

Definition at line 349 of file qv4persistent.cpp.

◆ WeakValue() [3/3]

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

Definition at line 358 of file qv4persistent.cpp.

◆ ~WeakValue()

WeakValue::~WeakValue ( )

Definition at line 382 of file qv4persistent.cpp.

Member Function Documentation

◆ as()

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

Definition at line 153 of file qv4persistent_p.h.

◆ asManaged()

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

Definition at line 147 of file qv4persistent_p.h.

◆ clear()

void QV4::WeakValue::clear ( )
inline

Definition at line 167 of file qv4persistent_p.h.

◆ engine()

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

Definition at line 159 of file qv4persistent_p.h.

◆ isNullOrUndefined()

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

Definition at line 166 of file qv4persistent_p.h.

◆ isUndefined()

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

Definition at line 165 of file qv4persistent_p.h.

◆ markOnce()

void WeakValue::markOnce ( MarkStack * markStack)

Definition at line 442 of file qv4persistent.cpp.

◆ operator=()

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

Definition at line 364 of file qv4persistent.cpp.

◆ set() [1/3]

void WeakValue::set ( ExecutionEngine * engine,
const Value & value )

Definition at line 398 of file qv4persistent.cpp.

◆ set() [2/3]

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

Definition at line 425 of file qv4persistent.cpp.

◆ set() [3/3]

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

Definition at line 411 of file qv4persistent.cpp.

◆ value()

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

Definition at line 141 of file qv4persistent_p.h.

◆ valueRef()

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

Definition at line 144 of file qv4persistent_p.h.


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