![]() |
Qt 6.x
The Qt SDK
|
#include <qv4executablecompilationunit_p.h>
Inheritance diagram for QV4::ResolvedTypeReferenceMap:
Collaboration diagram for QV4::ResolvedTypeReferenceMap:Public Member Functions | |
| bool | addToHash (QCryptographicHash *hash, QHash< quintptr, QByteArray > *checksums) const |
Public Member Functions inherited from QHash< int, ResolvedTypeReference * > | |
| QHash () noexcept=default | |
| Constructs an empty hash. | |
| QHash (std::initializer_list< std::pair< int, ResolvedTypeReference * > > list) | |
| QHash (const QHash &other) noexcept | |
| Constructs a copy of other. | |
| QHash (QHash &&other) noexcept | |
| Move-constructs a QHash instance, making it point at the same object that other was pointing to. | |
| QHash (InputIterator f, InputIterator l) | |
| QHash (InputIterator f, InputIterator l) | |
| ~QHash () | |
| Destroys the hash. | |
| QHash & | operator= (const QHash &other) noexcept(std::is_nothrow_destructible< Node >::value) |
| Assigns other to this hash and returns a reference to this hash. | |
| void | swap (QHash &other) noexcept |
| QTypeTraits::compare_eq_result_container< QHash, AKey, AT > | operator== (const QHash &other) const noexcept |
Returns true if other is equal to this hash; otherwise returns false. | |
| QTypeTraits::compare_eq_result_container< QHash, AKey, AT > | operator!= (const QHash &other) const noexcept |
Returns true if other is not equal to this hash; otherwise returns false. | |
| qsizetype | size () const noexcept |
| Returns the number of items in the hash. | |
| bool | isEmpty () const noexcept |
Returns true if the hash contains no items; otherwise returns false. | |
| qsizetype | capacity () const noexcept |
| Returns the number of buckets in the QHash's internal hash table. | |
| void | reserve (qsizetype size) |
| Ensures that the QHash's internal hash table has space to store at least size items without having to grow the hash table. | |
| void | squeeze () |
| Reduces the size of the QHash's internal hash table to save memory. | |
| void | detach () |
| bool | isDetached () const noexcept |
| bool | isSharedWith (const QHash &other) const noexcept |
| void | clear () noexcept(std::is_nothrow_destructible< Node >::value) |
| Removes all items from the hash and frees up all memory used by it. | |
| bool | remove (const int &key) |
| Removes the item that has the key from the hash. | |
| qsizetype | removeIf (Predicate pred) |
| ResolvedTypeReference * | take (const int &key) |
| Removes the item with the key from the hash and returns the value associated with it. | |
| bool | contains (const int &key) const noexcept |
Returns true if the hash contains an item with the key; otherwise returns false. | |
| qsizetype | count (const int &key) const noexcept |
| Returns the number of items associated with the key. | |
| qsizetype | count () const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as size(). | |
| int | key (const ResolvedTypeReference * &value) const noexcept |
| int | key (const ResolvedTypeReference * &value, const int &defaultKey) const noexcept |
| ResolvedTypeReference * | value (const int &key) const noexcept |
| ResolvedTypeReference * | value (const int &key, const ResolvedTypeReference * &defaultValue) const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the value associated with the key. | |
| ResolvedTypeReference * & | operator[] (const int &key) |
| Returns the value associated with the key as a modifiable reference. | |
| const ResolvedTypeReference * | operator[] (const int &key) const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as value(). | |
| QList< int > | keys () const |
| Returns a list containing all the keys in the hash, in an arbitrary order. | |
| QList< int > | keys (const ResolvedTypeReference * &value) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns a list containing all the keys associated with value value, in an arbitrary order. | |
| QList< ResolvedTypeReference * > | values () const |
| Returns a list containing all the values in the hash, in an arbitrary order. | |
| iterator | begin () |
| Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash. | |
| const_iterator | begin () const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| const_iterator | cbegin () const noexcept |
| const_iterator | constBegin () const noexcept |
| Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash. | |
| iterator | end () noexcept |
| Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last item in the hash. | |
| const_iterator | end () const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| const_iterator | cend () const noexcept |
| const_iterator | constEnd () const noexcept |
| Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last item in the hash. | |
| key_iterator | keyBegin () const noexcept |
| key_iterator | keyEnd () const noexcept |
| key_value_iterator | keyValueBegin () |
| const_key_value_iterator | keyValueBegin () const noexcept |
| key_value_iterator | keyValueEnd () |
| const_key_value_iterator | keyValueEnd () const noexcept |
| const_key_value_iterator | constKeyValueBegin () const noexcept |
| const_key_value_iterator | constKeyValueEnd () const noexcept |
| auto | asKeyValueRange () & |
| auto | asKeyValueRange () const & |
| auto | asKeyValueRange () && |
| auto | asKeyValueRange () const && |
| iterator | erase (const_iterator it) |
| QPair< iterator, iterator > | equal_range (const int &key) |
| QPair< const_iterator, const_iterator > | equal_range (const int &key) const noexcept |
| iterator | find (const int &key) |
| Returns an iterator pointing to the item with the key in the hash. | |
| const_iterator | find (const int &key) const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| const_iterator | constFind (const int &key) const noexcept |
| iterator | insert (const int &key, const ResolvedTypeReference * &value) |
| Inserts a new item with the key and a value of value. | |
| void | insert (const QHash &hash) |
| iterator | emplace (const int &key, Args &&... args) |
| iterator | emplace (int &&key, Args &&... args) |
| Inserts a new element into the container. | |
| float | load_factor () const noexcept |
| Returns the current load factor of the QHash's internal hash table. | |
| size_t | bucket_count () const noexcept |
| bool | empty () const noexcept |
| This function is provided for STL compatibility. | |
Additional Inherited Members | |
Public Types inherited from QHash< int, ResolvedTypeReference * > | |
| using | key_type = int |
| Typedef for Key. | |
| using | mapped_type = ResolvedTypeReference * |
| Typedef for T. | |
| using | value_type = ResolvedTypeReference * |
| using | size_type = qsizetype |
| Typedef for int. | |
| using | difference_type = qsizetype |
| Typedef for ptrdiff_t. | |
| using | reference = ResolvedTypeReference * & |
| using | const_reference = const ResolvedTypeReference * & |
| typedef QKeyValueIterator< const int &, const ResolvedTypeReference * &, const_iterator > | const_key_value_iterator |
| \inmodule QtCore | |
| typedef QKeyValueIterator< const int &, ResolvedTypeReference * &, iterator > | key_value_iterator |
| \inmodule QtCore | |
| typedef iterator | Iterator |
| Qt-style synonym for QHash::iterator. | |
| typedef const_iterator | ConstIterator |
| Qt-style synonym for QHash::const_iterator. | |
Static Public Member Functions inherited from QHash< int, ResolvedTypeReference * > | |
| static float | max_load_factor () noexcept |
| static size_t | max_bucket_count () noexcept |
Related Symbols inherited from QHash< int, ResolvedTypeReference * > | |
| size_t | qHash (const QUrl &url, size_t seed) noexcept |
| Returns the hash value for the url. | |
| size_t | qHash (const QDateTime &key, size_t seed=0) |
| size_t | qHash (QDate key, size_t seed=0) |
| size_t | qHash (QTime key, size_t seed=0) |
| template< typename T1, typename T2 > size_t | qHash (const std::pair< T1, T2 > &key, size_t seed=0) |
| size_t | qHash (char key, size_t seed=0) |
| size_t | qHash (uchar key, size_t seed=0) |
| size_t | qHash (signed char key, size_t seed=0) |
| size_t | qHash (ushort key, size_t seed=0) |
| size_t | qHash (short key, size_t seed=0) |
| size_t | qHash (uint key, size_t seed=0) |
| size_t | qHash (int key, size_t seed=0) |
| size_t | qHash (ulong key, size_t seed=0) |
| size_t | qHash (long key, size_t seed=0) |
| size_t | qHash (quint64 key, size_t seed=0) |
| size_t | qHash (qint64 key, size_t seed=0) |
| size_t | qHash (char8_t key, size_t seed=0) |
| size_t | qHash (char16_t key, size_t seed=0) |
| size_t | qHash (char32_t key, size_t seed=0) |
| size_t | qHash (wchar_t key, size_t seed=0) |
| size_t | qHash (float key, size_t seed=0) noexcept |
| size_t | qHash (double key, size_t seed) noexcept |
| size_t | qHash (long double key, size_t seed) noexcept |
| size_t | qHash (const QChar key, size_t seed=0) |
| size_t | qHash (const QByteArray &key, size_t seed=0) |
| size_t | qHash (const QByteArrayView &key, size_t seed=0) |
| size_t | qHash (const QBitArray &key, size_t seed=0) |
| size_t | qHash (const QString &key, size_t seed=0) |
| size_t | qHash (QLatin1StringView key, size_t seed=0) |
| template< class ResolvedTypeReference * > size_t | qHash (const ResolvedTypeReference * *key, size_t seed=0) |
| template< class ResolvedTypeReference * > size_t | qHash (std::nullptr_t key, size_t seed=0) |
| template< class int, class ResolvedTypeReference * > size_t | qHash (const QHash< int, ResolvedTypeReference * > &key, size_t seed=0) |
| size_t | qHash (QPoint key, size_t seed=0) |
| size_t | qHash (const QVersionNumber &key, size_t seed) |
| size_t | qHash (const QTypeRevision &key, size_t seed) |
| size_t | qHash (const QOcspResponse &response, size_t seed) noexcept |
| Returns the hash value for the response, using seed to seed the calculation. | |
| size_t | qHash (const QSslCertificate &key, size_t seed) noexcept |
| Returns the hash value for the key, using seed to seed the calculation. | |
| size_t | qHash (QSslEllipticCurve curve, size_t seed=0) |
| size_t | qHash (const QSslError &key, size_t seed) noexcept |
| Returns the hash value for the key, using seed to seed the calculation. | |
| size_t | qHash (const QGeoCoordinate &coordinate, size_t seed=0) |
| Returns a hash value for coordinate, using seed to seed the calculation. | |
| template< typename... ResolvedTypeReference * > size_t | qHashMulti (size_t seed, const ResolvedTypeReference * &...args) |
| template< typename... ResolvedTypeReference * > size_t | qHashMultiCommutative (size_t seed, const ResolvedTypeReference * &...args) |
| template< typename InputIterator > size_t | qHashRange (InputIterator first, InputIterator last, size_t seed=0) |
| template< typename InputIterator > size_t | qHashRangeCommutative (InputIterator first, InputIterator last, size_t seed=0) |
| size_t | qHashBits (const void *p, size_t len, size_t seed=0) |
| template< typename ResolvedTypeReference * > bool | qHashEquals (const ResolvedTypeReference * &a, const ResolvedTypeReference * &b) |
| template< class int, class ResolvedTypeReference * > QDataStream & | operator<< (QDataStream &out, const QHash< int, ResolvedTypeReference * > &hash) |
| Writes the hash hash to stream out. | |
| template< class int, class ResolvedTypeReference * > QDataStream & | operator>> (QDataStream &in, QHash< int, ResolvedTypeReference * > &hash) |
| Reads a hash from stream in into hash. | |
| template< typename int, typename ResolvedTypeReference *, typename Predicate > qsizetype | erase_if (QHash< int, ResolvedTypeReference * > &hash, Predicate pred) |
Definition at line 63 of file qv4executablecompilationunit_p.h.
| bool QV4::ResolvedTypeReferenceMap::addToHash | ( | QCryptographicHash * | hash, |
| QHash< quintptr, QByteArray > * | checksums | ||
| ) | const |
This function creates a temporary key vector and sorts it to guarantuee a stable hash. This is used to calculate a check-sum on dependent meta-objects.
Definition at line 917 of file qv4executablecompilationunit.cpp.
References hash, i, it, and keys.
Referenced by QQmlTypeData::done().
Here is the caller graph for this function: