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>.
|
#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 66 of file qv4persistent_p.h.
|
constexprdefaultnoexcept |
PersistentValue::PersistentValue | ( | const PersistentValue & | other | ) |
|
inlinenoexcept |
Definition at line 73 of file qv4persistent_p.h.
|
inline |
Definition at line 76 of file qv4persistent_p.h.
Referenced by QQmlBindEntryContent::destroy().
PersistentValue::PersistentValue | ( | ExecutionEngine * | engine, |
const Value & | value ) |
PersistentValue::PersistentValue | ( | ExecutionEngine * | engine, |
ReturnedValue | value ) |
PersistentValue::PersistentValue | ( | ExecutionEngine * | engine, |
Object * | object ) |
|
inline |
Definition at line 101 of file qv4persistent_p.h.
Referenced by QQmlPropertyBindingJSForBoundFunction::evaluate(), QQmlComponentIncubator::setInitialState(), and QQmlComponentIncubator::statusChanged().
|
inline |
Definition at line 95 of file qv4persistent_p.h.
References QV4::Value::managed().
Referenced by QJSValueIterator::value().
|
inline |
Definition at line 115 of file qv4persistent_p.h.
Referenced by QQuickLoaderPrivate::disposeInitialPropertyValues(), QQuickStackElement::initialize(), QQmlContextData::invalidate(), and QQmlAdaptorModel::setModel().
|
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().
|
inline |
Definition at line 119 of file qv4persistent_p.h.
Referenced by QQmlScriptBlob::isNative(), QQmlXMLHttpRequest::jsonResponseBody(), and QQmlXMLHttpRequest::xmlResponseBody().
|
inline |
Definition at line 114 of file qv4persistent_p.h.
|
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().
PersistentValue & PersistentValue::operator= | ( | const PersistentValue & | other | ) |
Definition at line 268 of file qv4persistent.cpp.
References engine(), other(), Q_ASSERT, and QV4::Encode::undefined().
PersistentValue & PersistentValue::operator= | ( | const WeakValue & | other | ) |
Definition at line 286 of file qv4persistent.cpp.
References engine(), other(), Q_ASSERT, set, and QV4::Encode::undefined().
PersistentValue & PersistentValue::operator= | ( | Object * | object | ) |
Definition at line 301 of file qv4persistent.cpp.
References QV4::PersistentValueStorage::free(), and set.
void PersistentValue::set | ( | ExecutionEngine * | engine, |
const Value & | value ) |
Definition at line 311 of file qv4persistent.cpp.
References QV4::PersistentValueStorage::allocate(), engine(), QV4::WriteBarrier::isInsertionBarrier, QV4::MemoryManager::m_persistentValues, QV4::WriteBarrier::markCustom(), 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 336 of file qv4persistent.cpp.
References QV4::PersistentValueStorage::allocate(), engine(), QV4::WriteBarrier::isInsertionBarrier, QV4::MemoryManager::m_persistentValues, QV4::WriteBarrier::markCustom(), and QV4::EngineBase::memoryManager.
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().
|
inlinenoexcept |
Definition at line 74 of file qv4persistent_p.h.
References other(), and qt_ptr_swap().
|
inline |
Definition at line 89 of file qv4persistent_p.h.
Referenced by QQmlDMAbstractItemModelData::get(), QJSValueIterator::hasNext(), QV4::QObjectSlotDispatcher::impl(), QQmlComponent::incubateObject(), QQuickStackElement::initialize(), QV4DataCollector::isValidRef(), QQmlXMLHttpRequest::jsonResponseBody(), QJSValueIterator::name(), QJSValueIterator::next(), QV4::Script::run(), QQmlScriptData::scriptValueForContext(), set(), set(), QQuickLoaderPrivate::setInitialState(), QQuickContext2D::v4value(), QJSValueIterator::value(), and QQmlXMLHttpRequest::xmlResponseBody().
|
inline |
Definition at line 92 of file qv4persistent_p.h.
Referenced by QQmlBinding::evaluate(), QQmlJavaScriptExpression::evaluate(), and QQmlJavaScriptExpression::evaluate().