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::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 QQmlEnginePrivate::createInternalContext(), QV4::Document::load(), QV4::ObjectPrototype::method_assign(), QV4::ArrayPrototype::method_copyWithin(), QV4::ObjectPrototype::method_create(), QV4::ArrayPrototype::method_fill(), QV4::ObjectPrototype::method_getOwnPropertyDescriptors(), and qt_create_image_data().

+ Here is the call graph for this function:
+ Here is the caller 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::Scoped< T >::operator->(), and QV4::Scoped< T >::operator->().

+ 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.

◆ 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()

template<typename T >
QML_NEARLY_ALWAYS_INLINE void QV4::Scoped< T >::setPointer ( const Managed * p)
inline

Member Data Documentation

◆ ptr


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