Qt 6.x
The Qt SDK
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 63 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 223 of file qv4persistent.cpp.

References other().

+ Here is the call graph for this function:

◆ PersistentValue() [3/6]

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

Definition at line 70 of file qv4persistent_p.h.

◆ ~PersistentValue()

QV4::PersistentValue::~PersistentValue ( )
inline

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

References QV4::PersistentValueStorage::allocate(), engine(), QV4::MemoryManager::m_persistentValues, QV4::EngineBase::memoryManager, and value().

+ Here is the call graph for this function:

◆ PersistentValue() [5/6]

PersistentValue::PersistentValue ( ExecutionEngine engine,
ReturnedValue  value 
)

Definition at line 238 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::allocate(), engine(), QV4::MemoryManager::m_persistentValues, QV4::EngineBase::memoryManager, and value().

+ Here is the call graph for this function:

◆ PersistentValue() [6/6]

PersistentValue::PersistentValue ( ExecutionEngine engine,
Object object 
)

Definition at line 244 of file qv4persistent.cpp.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ as()

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

Definition at line 98 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 92 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 112 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 104 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 116 of file qv4persistent_p.h.

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

+ Here is the caller graph for this function:

◆ isNullOrUndefined()

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

Definition at line 111 of file qv4persistent_p.h.

◆ isUndefined()

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

Definition at line 110 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 254 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 272 of file qv4persistent.cpp.

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

+ Here is the call graph for this function:

◆ operator=() [3/3]

PersistentValue & PersistentValue::operator= ( Object object)

Definition at line 290 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::free().

+ 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 317 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::allocate(), engine(), QV4::MemoryManager::m_persistentValues, 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 310 of file qv4persistent.cpp.

References QV4::PersistentValueStorage::allocate(), engine(), QV4::MemoryManager::m_persistentValues, QV4::EngineBase::memoryManager, and value().

+ Here is the call graph for this function:

◆ swap()

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

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