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 &valuevalue)
WeakValue & operator= (const WeakValue &other)
 ~WeakValue ()
void set (ExecutionEngine *engine, const Value &valuevalue)
void set (ExecutionEngine *engine, ReturnedValue valuevalue)
void set (ExecutionEngine *engine, Heap::Base *objobj)
ReturnedValue value () const
Value * valueRef () const
Managed * asManaged () const
template<typename T>
T * as () const
ExecutionEngine * engine () const
bool isUndefined () const
bool isNullOrUndefined () const
void clear ()
void markOnce (MarkStack *markStack)

Detailed Description

Definition at line 127 of file qv4persistent_p.h.

Constructor & Destructor Documentation

◆ WeakValue() [1/3]

QV4::WeakValue::WeakValue ( )
inline

Definition at line 130 of file qv4persistent_p.h.

◆ WeakValue() [2/3]

QV4::WeakValue::WeakValue ( const WeakValue & other)

Definition at line 353 of file qv4persistent.cpp.

◆ WeakValue() [3/3]

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

Definition at line 362 of file qv4persistent.cpp.

◆ ~WeakValue()

QV4::WeakValue::~WeakValue ( )

Definition at line 386 of file qv4persistent.cpp.

Member Function Documentation

◆ as()

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

Definition at line 154 of file qv4persistent_p.h.

◆ asManaged()

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

Definition at line 148 of file qv4persistent_p.h.

◆ clear()

void QV4::WeakValue::clear ( )
inline

Definition at line 168 of file qv4persistent_p.h.

◆ engine()

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

Definition at line 160 of file qv4persistent_p.h.

◆ isNullOrUndefined()

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

Definition at line 167 of file qv4persistent_p.h.

◆ isUndefined()

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

Definition at line 166 of file qv4persistent_p.h.

◆ markOnce()

void QV4::WeakValue::markOnce ( MarkStack * markStack)

Definition at line 446 of file qv4persistent.cpp.

◆ operator=()

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

Definition at line 368 of file qv4persistent.cpp.

◆ set() [1/3]

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

Definition at line 402 of file qv4persistent.cpp.

◆ set() [2/3]

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

Definition at line 429 of file qv4persistent.cpp.

◆ set() [3/3]

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

Definition at line 415 of file qv4persistent.cpp.

◆ value()

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

Definition at line 142 of file qv4persistent_p.h.

◆ valueRef()

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

Definition at line 145 of file qv4persistent_p.h.


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