![]() |
Qt 6.x
The Qt SDK
|
#include <qv4propertykey_p.h>
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> | |
StringOrSymbol * | asStringOrSymbol () const |
Q_QML_PRIVATE_EXPORT bool | isString () const |
Q_QML_PRIVATE_EXPORT bool | isSymbol () const |
bool | isCanonicalNumericIndexString () const |
Q_QML_PRIVATE_EXPORT QString | toQString () const |
Heap::StringOrSymbol * | toStringOrSymbol (ExecutionEngine *e) |
quint64 | id () const |
Heap::String * | asFunctionName (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> | |
static PropertyKey | fromStringOrSymbol (StringOrSymbol *b) |
static PropertyKey | fromId (quint64 id) |
Friends | |
size_t | qHash (const PropertyKey &key, size_t seed=0) |
Definition at line 27 of file qv4propertykey_p.h.
Enumerator | |
---|---|
None | |
Getter | |
Setter |
Definition at line 103 of file qv4propertykey_p.h.
|
inline |
Definition at line 61 of file qv4propertykey_p.h.
References isArrayIndex(), and Q_ASSERT.
Referenced by toStringOrSymbol().
QV4::Heap::String * QV4::PropertyKey::asFunctionName | ( | ExecutionEngine * | e, |
FunctionNamePrefix | prefix | ||
) | const |
Definition at line 55 of file qv4propertykey.cpp.
References engine, QChar::fromLatin1(), QV4::Getter, QString::mid(), QString::number(), QStringLiteral, QV4::Setter, QString::size(), and str.
Referenced by QV4::Runtime::CreateClass::call().
|
inline |
Definition at line 84 of file qv4propertykey_p.h.
Referenced by QV4::Heap::StringOrSymbol::markObjects(), and toStringOrSymbol().
|
inlinestatic |
Definition at line 53 of file qv4propertykey_p.h.
Referenced by QV4::IdentifierTable::asPropertyKey(), QV4::IdentifierTable::asPropertyKey(), QV4::IdentifierTable::asPropertyKeyImpl(), QV4::WeakMapCtor::construct(), QJSManagedValue::deleteProperty(), QJSManagedValue::hasOwnProperty(), QV4::IdentifierTable::insertString(), QV4::ArrayPrototype::method_copyWithin(), QV4::ObjectPrototype::method_entries(), QV4::ArrayPrototype::method_from(), QV4::RegExpPrototype::method_match(), QV4::ArrayPrototype::method_of(), QV4::IntrinsicTypedArrayCtor::method_of(), QV4::ArrayPrototype::method_pop(), QV4::RegExpPrototype::method_replace(), QV4::ArrayPrototype::method_reverse(), QV4::ArrayPrototype::method_shift(), QV4::ArrayPrototype::method_splice(), QV4::RegExpPrototype::method_split(), QV4::ArrayPrototype::method_unshift(), QV4::ObjectOwnPropertyKeyIterator::next(), ProxyObjectOwnPropertyKeyIterator::next(), QV4::SequenceOwnPropertyKeyIterator::next(), TypedArrayOwnPropertyKeyIterator::next(), QmlListWrapperOwnPropertyKeyIterator::next(), StringObjectOwnPropertyKeyIterator::next(), UrlSearchParamsObjectOwnPropertyKeyIterator::next(), QJSValue::setProperty(), and QV4::Value::toPropertyKey().
|
inlinestatic |
Definition at line 99 of file qv4propertykey_p.h.
References id().
Referenced by QV4::SharedInternalClassDataPrivate< PropertyKey >::at(), QJSValueIterator::hasNext(), QJSValueIterator::name(), QJSValueIterator::next(), ProxyObjectOwnPropertyKeyIterator::next(), QJSValueIterator::value(), and QV4::ProxyObject::virtualOwnPropertyKeys().
|
inlinestatic |
Definition at line 74 of file qv4propertykey_p.h.
References Q_ASSERT.
Referenced by QV4::IdentifierTable::addEntry(), and QV4::Heap::Symbol::init().
|
inline |
Definition at line 98 of file qv4propertykey_p.h.
Referenced by fromId(), QV4::PropertyHash::lookup(), and QV4::ProxyObject::virtualOwnPropertyKeys().
|
inlinestatic |
Definition at line 46 of file qv4propertykey_p.h.
References QV4::StaticValue::undefinedValue().
Referenced by QV4::ScopedPropertyKey::ScopedPropertyKey(), QV4::Heap::addDummyEntry(), QV4::Heap::InternalClass::asProtoClass(), QV4::Heap::InternalClass::frozen(), QV4::Heap::InternalClass::locked(), QV4::ObjectOwnPropertyKeyIterator::next(), ProxyObjectOwnPropertyKeyIterator::next(), QV4::SequenceOwnPropertyKeyIterator::next(), QmlListWrapperOwnPropertyKeyIterator::next(), QV4::ObjectIterator::next(), QV4::ForInIteratorObject::nextProperty(), QV4::Heap::InternalClass::nonExtensible(), QV4::Heap::InternalClass::sealed(), QV4::Heap::String::simplifyString(), and QV4::Value::toPropertyKey().
|
inline |
Definition at line 67 of file qv4propertykey_p.h.
Referenced by asArrayIndex(), and toStringOrSymbol().
bool QV4::PropertyKey::isCanonicalNumericIndexString | ( | ) | const |
Definition at line 28 of file qv4propertykey.cpp.
References d, QV4::Scope::engine, QV4::Value::fromDouble(), str, and QV4::toString().
bool QV4::PropertyKey::isString | ( | ) | const |
Definition at line 18 of file qv4propertykey.cpp.
|
inline |
Definition at line 60 of file qv4propertykey_p.h.
Referenced by QV4::Heap::InternalClass::addMember().
bool QV4::PropertyKey::isSymbol | ( | ) | const |
Definition at line 23 of file qv4propertykey.cpp.
|
inline |
Definition at line 68 of file qv4propertykey_p.h.
Referenced by QV4::PropertyHash::addEntry(), QV4::PropertyHash::detach(), QJSValueIterator::hasNext(), QV4::PropertyHash::lookup(), QJSValueIterator::next(), and QV4::ProxyObject::virtualOwnPropertyKeys().
|
inline |
Definition at line 111 of file qv4propertykey_p.h.
References other().
|
inline |
Definition at line 112 of file qv4propertykey_p.h.
References other().
|
inline |
Definition at line 110 of file qv4propertykey_p.h.
References other().
QString QV4::PropertyKey::toQString | ( | ) | const |
Definition at line 46 of file qv4propertykey.cpp.
References QString::number(), and Q_ASSERT.
QV4::Heap::StringOrSymbol * QV4::PropertyKey::toStringOrSymbol | ( | QV4::ExecutionEngine * | e | ) |
Definition at line 11 of file qv4propertykey.cpp.
References asArrayIndex(), asStringOrSymbol(), e, QV4::Value::fromUInt32(), isArrayIndex(), and QV4::Value::toString().
|
friend |
Definition at line 113 of file qv4propertykey_p.h.