![]() |
Qt 6.x
The Qt SDK
|
#include <qv4persistent_p.h>
Public Member Functions | |
constexpr | PersistentValue () noexcept=default |
PersistentValue (const PersistentValue &other) | |
PersistentValue & | operator= (const PersistentValue &other) |
PersistentValue (PersistentValue &&other) noexcept | |
void | swap (PersistentValue &other) noexcept |
~PersistentValue () | |
PersistentValue & | operator= (const WeakValue &other) |
PersistentValue & | operator= (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 |
Value * | valueRef () const |
Managed * | asManaged () const |
template<typename T > | |
T * | as () const |
ExecutionEngine * | engine () const |
bool | isUndefined () const |
bool | isNullOrUndefined () const |
void | clear () |
bool | isEmpty () |
Definition at line 63 of file qv4persistent_p.h.
|
constexprdefaultnoexcept |
PersistentValue::PersistentValue | ( | const PersistentValue & | other | ) |
Definition at line 223 of file qv4persistent.cpp.
References other().
|
inlinenoexcept |
Definition at line 70 of file qv4persistent_p.h.
|
inline |
Definition at line 73 of file qv4persistent_p.h.
Referenced by QQmlBindEntryContent::destroy().
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().
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().
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.
|
inline |
Definition at line 98 of file qv4persistent_p.h.
Referenced by QQmlPropertyBindingJSForBoundFunction::evaluate(), QQmlComponentIncubator::setInitialState(), and QQmlComponentIncubator::statusChanged().
|
inline |
Definition at line 92 of file qv4persistent_p.h.
References QV4::Value::managed().
Referenced by QJSValueIterator::value().
|
inline |
Definition at line 112 of file qv4persistent_p.h.
Referenced by QQuickLoaderPrivate::disposeInitialPropertyValues(), QQuickStackElement::initialize(), QQmlContextData::invalidate(), and QQmlAdaptorModel::setModel().
|
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().
|
inline |
Definition at line 116 of file qv4persistent_p.h.
Referenced by QQmlXMLHttpRequest::jsonResponseBody(), and QQmlXMLHttpRequest::xmlResponseBody().
|
inline |
Definition at line 111 of file qv4persistent_p.h.
|
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().
PersistentValue & PersistentValue::operator= | ( | const PersistentValue & | other | ) |
Definition at line 254 of file qv4persistent.cpp.
References engine(), other(), Q_ASSERT, and QV4::Encode::undefined().
PersistentValue & PersistentValue::operator= | ( | const WeakValue & | other | ) |
Definition at line 272 of file qv4persistent.cpp.
References engine(), other(), Q_ASSERT, and QV4::Encode::undefined().
PersistentValue & PersistentValue::operator= | ( | Object * | object | ) |
Definition at line 290 of file qv4persistent.cpp.
References QV4::PersistentValueStorage::free().
void PersistentValue::set | ( | ExecutionEngine * | engine, |
const Value & | value | ||
) |
Definition at line 303 of file qv4persistent.cpp.
References QV4::PersistentValueStorage::allocate(), engine(), QV4::MemoryManager::m_persistentValues, QV4::EngineBase::memoryManager, and value().
Referenced by QQmlAdaptorModelEngineData::QQmlAdaptorModelEngineData(), QQmlComponentExtension::QQmlComponentExtension(), QQmlComponentIncubator::QQmlComponentIncubator(), QV4DataCollector::QV4DataCollector(), QV4::Script::Script(), QV4DataCollector::clear(), VDMAbstractItemModelDataType::initializeConstructor(), QQmlDelegateModelItemMetaType::initializePrototype(), initProperties(), QQmlXMLHttpRequest::jsonResponseBody(), QV4Debugger::leavingFunction(), NativeDebugger::leavingFunction(), QV4::QObjectWrapper::method_connect(), QJSValueIteratorPrivate::next(), QQuickStackViewPrivate::parseElements(), QV4Debugger::resume(), QQmlScriptData::scriptValueForContext(), QQuick3DLoader::setSource(), QQmlJavaScriptExpression::setupFunction(), and QQmlXMLHttpRequest::xmlResponseBody().
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.
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().
|
inlinenoexcept |
Definition at line 71 of file qv4persistent_p.h.
References other(), and qt_ptr_swap().
|
inline |
Definition at line 86 of file qv4persistent_p.h.
Referenced by PersistentValue(), PersistentValue(), QQmlDMAbstractItemModelData::get(), QJSValueIterator::hasNext(), QV4::QObjectSlotDispatcher::impl(), QQuickStackElement::initialize(), QV4DataCollector::isValidRef(), QQmlXMLHttpRequest::jsonResponseBody(), QQuickJSContext2DPrototype::method_createConicalGradient(), QQuickJSContext2DPrototype::method_createLinearGradient(), QQuickJSContext2DPrototype::method_createRadialGradient(), QJSValueIterator::name(), QJSValueIterator::next(), qt_create_image_data(), QV4::Script::run(), QQmlScriptData::scriptValueForContext(), set(), set(), QQuickLoaderPrivate::setInitialState(), QQuickContext2D::setV4Engine(), QQuickV4ParticleData::v4Value(), QQuickContext2D::v4value(), QJSValueIterator::value(), and QQmlXMLHttpRequest::xmlResponseBody().
|
inline |
Definition at line 89 of file qv4persistent_p.h.
Referenced by QQmlBinding::evaluate(), QQmlJavaScriptExpression::evaluate(), and QQmlJavaScriptExpression::evaluate().