Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QV4::PropertyKey Struct Reference

#include <qv4propertykey_p.h>

Collaboration diagram for QV4::PropertyKey:

Public Types

enum  FunctionNamePrefix { None , Getter , Setter }

Public Member Functions

bool isStringOrSymbol () const
uint asArrayIndex () const
bool isArrayIndex () const
bool isValid () const
template<typename StringOrSymbol = Heap::StringOrSymbol>
StringOrSymbolasStringOrSymbol () const
Q_QML_EXPORT bool isString () const
Q_QML_EXPORT bool isSymbol () const
bool isCanonicalNumericIndexString () const
Q_QML_EXPORT QString toQString () const
Heap::StringOrSymboltoStringOrSymbol (ExecutionEngine *e)
quint64 id () const
Heap::StringasFunctionName (ExecutionEngine *e, FunctionNamePrefix prefix) const
bool operator== (const PropertyKey &other) const
bool operator!= (const PropertyKey &other) const
bool operator< (const PropertyKey &other) const

Static Public Member Functions

static PropertyKey invalid ()
static PropertyKey fromArrayIndex (uint idx)
template<typename StringOrSymbol = Heap::StringOrSymbol, typename Engine = QV4::EngineBase>
static PropertyKey fromStringOrSymbol (Engine *engine, StringOrSymbol *b)
static PropertyKey fromId (quint64 id)

Friends

size_t qHash (const PropertyKey &key, size_t seed=0)

Detailed Description

Definition at line 29 of file qv4propertykey_p.h.

Member Enumeration Documentation

◆ FunctionNamePrefix

Enumerator
None 
Getter 
Setter 

Definition at line 112 of file qv4propertykey_p.h.

Member Function Documentation

◆ asArrayIndex()

uint QV4::PropertyKey::asArrayIndex ( ) const
inline

Definition at line 63 of file qv4propertykey_p.h.

References isArrayIndex().

Referenced by QV4::Heap::InternalClass::keyAt(), QV4::StringObject::virtualDeleteProperty(), and QV4::StringObject::virtualGetOwnProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asFunctionName()

QV4::Heap::String * QV4::PropertyKey::asFunctionName ( ExecutionEngine * e,
FunctionNamePrefix prefix ) const

Definition at line 59 of file qv4propertykey.cpp.

References isArrayIndex().

Here is the call graph for this function:

◆ asStringOrSymbol()

template<typename StringOrSymbol = Heap::StringOrSymbol>
StringOrSymbol * QV4::PropertyKey::asStringOrSymbol ( ) const
inline

Definition at line 93 of file qv4propertykey_p.h.

◆ fromArrayIndex()

PropertyKey QV4::PropertyKey::fromArrayIndex ( uint idx)
inlinestatic

Definition at line 55 of file qv4propertykey_p.h.

Referenced by QV4::coerceListType().

Here is the caller graph for this function:

◆ fromId()

PropertyKey QV4::PropertyKey::fromId ( quint64 id)
inlinestatic

Definition at line 108 of file qv4propertykey_p.h.

◆ fromStringOrSymbol()

template<typename StringOrSymbol = Heap::StringOrSymbol, typename Engine = QV4::EngineBase>
PropertyKey QV4::PropertyKey::fromStringOrSymbol ( Engine * engine,
StringOrSymbol * b )
inlinestatic

Definition at line 76 of file qv4propertykey_p.h.

◆ id()

quint64 QV4::PropertyKey::id ( ) const
inline

Definition at line 107 of file qv4propertykey_p.h.

◆ invalid()

PropertyKey QV4::PropertyKey::invalid ( )
inlinestatic

Definition at line 48 of file qv4propertykey_p.h.

Referenced by QV4::ScopedPropertyKey::ScopedPropertyKey(), QV4::Heap::addDummyEntry(), QV4::Heap::InternalClass::asProtoClass(), QV4::Heap::InternalClass::frozen(), QV4::Heap::InternalClass::locked(), QV4::Heap::InternalClass::nonExtensible(), and QV4::Heap::InternalClass::sealed().

Here is the caller graph for this function:

◆ isArrayIndex()

bool QV4::PropertyKey::isArrayIndex ( ) const
inline

Definition at line 69 of file qv4propertykey_p.h.

Referenced by asArrayIndex(), asFunctionName(), isCanonicalNumericIndexString(), QV4::Heap::InternalClass::keyAt(), QV4::StringObject::virtualDeleteProperty(), and QV4::StringObject::virtualGetOwnProperty().

Here is the caller graph for this function:

◆ isCanonicalNumericIndexString()

bool QV4::PropertyKey::isCanonicalNumericIndexString ( ) const

Definition at line 32 of file qv4propertykey.cpp.

References isArrayIndex().

Here is the call graph for this function:

◆ isString()

bool QV4::PropertyKey::isString ( ) const

Definition at line 22 of file qv4propertykey.cpp.

◆ isStringOrSymbol()

bool QV4::PropertyKey::isStringOrSymbol ( ) const
inline

◆ isSymbol()

bool QV4::PropertyKey::isSymbol ( ) const

Definition at line 27 of file qv4propertykey.cpp.

◆ isValid()

bool QV4::PropertyKey::isValid ( ) const
inline

Definition at line 70 of file qv4propertykey_p.h.

◆ operator!=()

bool QV4::PropertyKey::operator!= ( const PropertyKey & other) const
inline

Definition at line 120 of file qv4propertykey_p.h.

Referenced by QV4::ScopedPropertyKey::operator!=(), and QV4::ScopedPropertyKey::operator!=().

Here is the caller graph for this function:

◆ operator<()

bool QV4::PropertyKey::operator< ( const PropertyKey & other) const
inline

Definition at line 121 of file qv4propertykey_p.h.

◆ operator==()

bool QV4::PropertyKey::operator== ( const PropertyKey & other) const
inline

Definition at line 119 of file qv4propertykey_p.h.

Referenced by QV4::ScopedPropertyKey::operator==(), and QV4::ScopedPropertyKey::operator==().

Here is the caller graph for this function:

◆ toQString()

QString QV4::PropertyKey::toQString ( ) const

Definition at line 50 of file qv4propertykey.cpp.

◆ toStringOrSymbol()

QV4::Heap::StringOrSymbol * QV4::PropertyKey::toStringOrSymbol ( QV4::ExecutionEngine * e)

Definition at line 15 of file qv4propertykey.cpp.

◆ qHash

size_t qHash ( const PropertyKey & key,
size_t seed = 0 )
friend

Definition at line 122 of file qv4propertykey_p.h.


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