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::PersistentValue Class Reference

#include <qv4persistent_p.h>

+ Collaboration diagram for QV4::PersistentValue:

Public Member Functions

constexpr PersistentValue () noexcept=default
 
 PersistentValue (const PersistentValue &other)
 
PersistentValueoperator= (const PersistentValue &other)
 
 PersistentValue (PersistentValue &&other) noexcept
 
void swap (PersistentValue &other) noexcept
 
 ~PersistentValue ()
 
PersistentValueoperator= (const WeakValue &other)
 
PersistentValueoperator= (Object *object)
 
 PersistentValue (ExecutionEngine *engine, const Value &value)
 
 PersistentValue (ExecutionEngine *engine, ReturnedValue value)
 
 PersistentValue (ExecutionEngine *engine, Object *object)
 
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 ()
 
bool isEmpty ()
 

Detailed Description

Definition at line 66 of file qv4persistent_p.h.

Constructor & Destructor Documentation

◆ PersistentValue() [1/6]

constexpr QV4::PersistentValue::PersistentValue ( )
constexprdefaultnoexcept

◆ PersistentValue() [2/6]

PersistentValue::PersistentValue ( const PersistentValue & other)

Definition at line 243 of file qv4persistent.cpp.

References other(), and set.

+ Here is the call graph for this function:

◆ PersistentValue() [3/6]

QV4::PersistentValue::PersistentValue ( PersistentValue && other)
inlinenoexcept

Definition at line 73 of file qv4persistent_p.h.

◆ ~PersistentValue()

QV4::PersistentValue::~PersistentValue ( )
inline

Definition at line 76 of file qv4persistent_p.h.

Referenced by QQmlBindEntryContent::destroy().

+ Here is the caller graph for this function:

◆ PersistentValue() [4/6]

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

Definition at line 250 of file qv4persistent.cpp.

References engine(), and set.

+ Here is the call graph for this function:

◆ PersistentValue() [5/6]

PersistentValue::PersistentValue ( ExecutionEngine * engine,
ReturnedValue value )

Definition at line 255 of file qv4persistent.cpp.

References engine(), and set.

+ Here is the call graph for this function:

◆ PersistentValue() [6/6]

PersistentValue::PersistentValue ( ExecutionEngine * engine,
Object * object )

Definition at line 260 of file qv4persistent.cpp.

References engine(), and set.

+ Here is the call graph for this function:

Member Function Documentation

◆ as()

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

Definition at line 101 of file qv4persistent_p.h.

Referenced by QQmlPropertyBindingJSForBoundFunction::evaluate(), QQmlComponentIncubator::setInitialState(), and QQmlComponentIncubator::statusChanged().

+ Here is the caller graph for this function:

◆ asManaged()

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

Definition at line 95 of file qv4persistent_p.h.

References QV4::Value::managed().

Referenced by QJSValueIterator::value().

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

◆ clear()

void QV4::PersistentValue::clear ( )
inline

Definition at line 115 of file qv4persistent_p.h.

Referenced by QQuickLoaderPrivate::disposeInitialPropertyValues(), QQuickStackElement::initialize(), QQmlContextData::invalidate(), and QQmlAdaptorModel::setModel().

+ Here is the caller graph for this function:

◆ engine()

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

Definition at line 107 of file qv4persistent_p.h.

Referenced by PersistentValue(), PersistentValue(), PersistentValue(), QV4::QObjectSlotDispatcher::impl(), operator=(), operator=(), set(), set(), set(), QQmlComponentIncubator::setInitialState(), and QQmlComponentIncubator::statusChanged().

+ Here is the caller graph for this function:

◆ isEmpty()

bool QV4::PersistentValue::isEmpty ( )
inline

Definition at line 119 of file qv4persistent_p.h.

Referenced by QQmlScriptBlob::isNative(), QQmlXMLHttpRequest::jsonResponseBody(), and QQmlXMLHttpRequest::xmlResponseBody().

+ Here is the caller graph for this function:

◆ isNullOrUndefined()

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

Definition at line 114 of file qv4persistent_p.h.

◆ isUndefined()

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

Definition at line 113 of file qv4persistent_p.h.

Referenced by QQmlDMAbstractItemModelData::get(), QV4::QObjectSlotDispatcher::impl(), QQuickStackElement::initialize(), QV4Debugger::resume(), QV4::Script::run(), and QQuickLoaderPrivate::setInitialState().

+ Here is the caller graph for this function:

◆ operator=() [1/3]

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

Definition at line 268 of file qv4persistent.cpp.

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

+ Here is the call graph for this function:

◆ operator=() [2/3]

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

Definition at line 286 of file qv4persistent.cpp.

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

+ Here is the call graph for this function:

◆ operator=() [3/3]

PersistentValue & PersistentValue::operator= ( Object * object)

Definition at line 301 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::free(), and set.

+ Here is the call graph for this function:

◆ set() [1/3]

◆ set() [2/3]

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

Definition at line 336 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::allocate(), engine(), QV4::WriteBarrier::isInsertionBarrier, QV4::MemoryManager::m_persistentValues, QV4::WriteBarrier::markCustom(), and QV4::EngineBase::memoryManager.

+ Here is the call graph for this function:

◆ set() [3/3]

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

Definition at line 322 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::allocate(), engine(), QV4::Value::fromReturnedValue(), QV4::WriteBarrier::isInsertionBarrier, QV4::MemoryManager::m_persistentValues, QV4::WriteBarrier::markCustom(), QV4::EngineBase::memoryManager, and value().

+ Here is the call graph for this function:

◆ swap()

void QV4::PersistentValue::swap ( PersistentValue & other)
inlinenoexcept

Definition at line 74 of file qv4persistent_p.h.

References other(), and qt_ptr_swap().

+ Here is the call graph for this function:

◆ value()

◆ valueRef()

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

Definition at line 92 of file qv4persistent_p.h.

Referenced by QQmlBinding::evaluate(), QQmlJavaScriptExpression::evaluate(), and QQmlJavaScriptExpression::evaluate().

+ Here is the caller graph for this function:

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