Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::Scoped< T > Struct Template Reference

#include <qv4scopedvalue_p.h>

+ Collaboration diagram for QV4::Scoped< T >:

Public Types

enum  ConvertType { Convert }
 

Public Member Functions

QML_NEARLY_ALWAYS_INLINE void setPointer (const Managed *p)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const Value &v)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, Heap::Base *o)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const ScopedValue &v)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const Value &v, ConvertType)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const Value *v)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, T *t)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const T *t)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, typename T::Data *t)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const ReturnedValue &v)
 
QML_NEARLY_ALWAYS_INLINE Scoped (const Scope &scope, const ReturnedValue &v, ConvertType)
 
Scoped< T > & operator= (Heap::Base *o)
 
Scoped< T > & operator= (typename T::Data *t)
 
Scoped< T > & operator= (const Value &v)
 
Scoped< T > & operator= (Value *v)
 
Scoped< T > & operator= (const ReturnedValue &v)
 
Scoped< T > & operator= (T *t)
 
 operator T* ()
 
 operator const Value & () const
 
T * operator-> ()
 
const T * operator-> () const
 
 operator bool () const
 
T * getPointer ()
 
const T * getPointer () const
 
ValuegetRef ()
 
QML_NEARLY_ALWAYS_INLINE ReturnedValue asReturnedValue () const
 

Public Attributes

Valueptr
 

Detailed Description

template<typename T>
struct QV4::Scoped< T >

Definition at line 265 of file qv4scopedvalue_p.h.

Member Enumeration Documentation

◆ ConvertType

template<typename T >
enum QV4::Scoped::ConvertType
Enumerator
Convert 

Definition at line 267 of file qv4scopedvalue_p.h.

Constructor & Destructor Documentation

◆ Scoped() [1/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope)
inline

Definition at line 273 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, and QV4::Scope::Undefined.

+ Here is the call graph for this function:

◆ Scoped() [2/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const Value v 
)
inline

Definition at line 278 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [3/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
Heap::Base o 
)
inline

Definition at line 283 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), o, QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [4/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const ScopedValue v 
)
inline

Definition at line 290 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [5/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const Value v,
ConvertType   
)
inline

Definition at line 296 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scope::engine, QV4::Scoped< T >::ptr, QV4::StaticValue::setRawValue(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [6/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const Value v 
)
inline

Definition at line 302 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [7/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
T *  t 
)
inline

Definition at line 308 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [8/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const T *  t 
)
inline

Definition at line 314 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [9/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
typename T::Data *  t 
)
inline

Definition at line 320 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scoped< T >::ptr, and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [10/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const ReturnedValue v 
)
inline

Definition at line 326 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Value::fromReturnedValue(), QV4::Scoped< T >::ptr, QV4::Scoped< T >::setPointer(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

◆ Scoped() [11/11]

template<typename T >
QML_NEARLY_ALWAYS_INLINE QV4::Scoped< T >::Scoped ( const Scope scope,
const ReturnedValue v,
ConvertType   
)
inline

Definition at line 332 of file qv4scopedvalue_p.h.

References QV4::Scope::alloc(), QV4::Scope::engine, QV4::Value::fromReturnedValue(), QV4::Scoped< T >::ptr, QV4::StaticValue::setRawValue(), and QV4::Scope::Uninitialized.

+ Here is the call graph for this function:

Member Function Documentation

◆ asReturnedValue()

template<typename T >
QML_NEARLY_ALWAYS_INLINE ReturnedValue QV4::Scoped< T >::asReturnedValue ( ) const
inline

Definition at line 396 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr, and QV4::StaticValue::rawValue().

Referenced by QV4::Runtime::CreateClass::call(), QV4::coerceListType(), QV4::Node::create(), QQmlEnginePrivate::createInternalContext(), QtObject::createQmlObject(), QJSEngine::importModule(), QV4::Document::load(), QV4::QQmlTypeWrapper::lookupScopedEnum(), QV4::WeakSetPrototype::method_add(), QV4::SetPrototype::method_add(), QV4::PromiseCtor::method_all(), QV4::ObjectPrototype::method_assign(), QV4::ArrayPrototype::method_concat(), QV4::ArrayPrototype::method_copyWithin(), QV4::IntrinsicTypedArrayPrototype::method_copyWithin(), QV4::ObjectPrototype::method_create(), QV4::ObjectPrototype::method_defineProperties(), QV4::ObjectPrototype::method_defineProperty(), QV4::ArrayPrototype::method_entries(), QV4::MapPrototype::method_entries(), QV4::SetPrototype::method_entries(), QV4::IntrinsicTypedArrayPrototype::method_entries(), QV4::UrlSearchParamsPrototype::method_entries(), QV4::ArrayPrototype::method_fill(), QV4::ObjectPrototype::method_getOwnPropertyDescriptors(), QV4::UrlPrototype::method_getSearchParams(), QV4::StringPrototype::method_iterator(), QV4::ArrayPrototype::method_keys(), QV4::MapPrototype::method_keys(), QV4::IntrinsicTypedArrayPrototype::method_keys(), QV4::UrlSearchParamsPrototype::method_keys(), QV4::IntrinsicTypedArrayCtor::method_of(), QV4::PromiseCtor::method_race(), QV4::PromiseCtor::method_reject(), QV4::PromiseCtor::method_resolve(), QV4::ArrayPrototype::method_reverse(), QV4::IntrinsicTypedArrayPrototype::method_reverse(), QV4::WeakMapPrototype::method_set(), QV4::MapPrototype::method_set(), QV4::ArrayPrototype::method_splice(), QV4::PropertyListPrototype::method_splice(), QV4::PromisePrototype::method_then(), QV4::ArrayPrototype::method_values(), QV4::MapPrototype::method_values(), QV4::SetPrototype::method_values(), QV4::IntrinsicTypedArrayPrototype::method_values(), QV4::UrlSearchParamsPrototype::method_values(), qmlsqldatabase_executeSql(), qt_create_image_data(), QV4::SharedArrayBufferPrototype::slice(), QV4::PromiseCtor::virtualCallAsConstructor(), QV4::QQmlTypeWrapper::virtualGet(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

+ Here is the call graph for this function:

◆ getPointer() [1/2]

template<typename T >
T * QV4::Scoped< T >::getPointer ( )
inline

Definition at line 384 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr.

Referenced by QV4::ExecutionEngine::metaTypeFromJS(), QV4::ArrayPrototype::method_concat(), QV4::ObjectPrototype::method_getOwnPropertyDescriptor(), QV4::Scoped< T >::operator->(), QV4::Scoped< T >::operator->(), and QV4::ResolveWrapper::virtualCall().

+ Here is the caller graph for this function:

◆ getPointer() [2/2]

template<typename T >
const T * QV4::Scoped< T >::getPointer ( ) const
inline

Definition at line 388 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr.

◆ getRef()

template<typename T >
Value * QV4::Scoped< T >::getRef ( )
inline

Definition at line 392 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr.

◆ operator bool()

template<typename T >
QV4::Scoped< T >::operator bool ( ) const
inlineexplicit

Definition at line 380 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr.

◆ operator const Value &()

template<typename T >
QV4::Scoped< T >::operator const Value & ( ) const
inline

Definition at line 368 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr.

◆ operator T*()

template<typename T >
QV4::Scoped< T >::operator T* ( )
inline

Definition at line 365 of file qv4scopedvalue_p.h.

References QV4::Value::managed(), and QV4::Scoped< T >::ptr.

+ Here is the call graph for this function:

◆ operator->() [1/2]

template<typename T >
T * QV4::Scoped< T >::operator-> ( )
inline

Definition at line 372 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::getPointer().

+ Here is the call graph for this function:

◆ operator->() [2/2]

template<typename T >
const T * QV4::Scoped< T >::operator-> ( ) const
inline

Definition at line 376 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::getPointer().

+ Here is the call graph for this function:

◆ operator=() [1/6]

template<typename T >
Scoped< T > & QV4::Scoped< T >::operator= ( const ReturnedValue v)
inline

Definition at line 355 of file qv4scopedvalue_p.h.

References QV4::Value::fromReturnedValue(), and QV4::Scoped< T >::setPointer().

+ Here is the call graph for this function:

◆ operator=() [2/6]

template<typename T >
Scoped< T > & QV4::Scoped< T >::operator= ( const Value v)
inline

Definition at line 346 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::setPointer().

+ Here is the call graph for this function:

◆ operator=() [3/6]

template<typename T >
Scoped< T > & QV4::Scoped< T >::operator= ( Heap::Base o)
inline

Definition at line 338 of file qv4scopedvalue_p.h.

References QV4::Value::fromHeapObject(), o, and QV4::Scoped< T >::setPointer().

+ Here is the call graph for this function:

◆ operator=() [4/6]

template<typename T >
Scoped< T > & QV4::Scoped< T >::operator= ( T *  t)
inline

Definition at line 360 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::setPointer().

+ Here is the call graph for this function:

◆ operator=() [5/6]

template<typename T >
Scoped< T > & QV4::Scoped< T >::operator= ( typename T::Data *  t)
inline

Definition at line 342 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::ptr.

◆ operator=() [6/6]

template<typename T >
Scoped< T > & QV4::Scoped< T >::operator= ( Value v)
inline

Definition at line 350 of file qv4scopedvalue_p.h.

References QV4::Scoped< T >::setPointer().

+ Here is the call graph for this function:

◆ setPointer()

Member Data Documentation

◆ ptr


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