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::RegExpCache Class Reference

#include <qv4regexp_p.h>

+ Inheritance diagram for QV4::RegExpCache:
+ Collaboration diagram for QV4::RegExpCache:

Public Member Functions

 ~RegExpCache ()
 
- Public Member Functions inherited from QHash< RegExpCacheKey, WeakValue >
 QHash () noexcept=default
 Constructs an empty hash.
 
 QHash (std::initializer_list< std::pair< RegExpCacheKey, WeakValue > > 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.
 
QHashoperator= (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, AToperator== (const QHash &other) const noexcept
 Returns true if other is equal to this hash; otherwise returns false.
 
QTypeTraits::compare_eq_result_container< QHash, AKey, AToperator!= (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 RegExpCacheKey &key)
 Removes the item that has the key from the hash.
 
qsizetype removeIf (Predicate pred)
 
WeakValue take (const RegExpCacheKey &key)
 Removes the item with the key from the hash and returns the value associated with it.
 
bool contains (const RegExpCacheKey &key) const noexcept
 Returns true if the hash contains an item with the key; otherwise returns false.
 
qsizetype count (const RegExpCacheKey &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().
 
RegExpCacheKey key (const WeakValue &value) const noexcept
 
RegExpCacheKey key (const WeakValue &value, const RegExpCacheKey &defaultKey) const noexcept
 
WeakValue value (const RegExpCacheKey &key) const noexcept
 
WeakValue value (const RegExpCacheKey &key, const WeakValue &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.
 
WeakValue & operator[] (const RegExpCacheKey &key)
 Returns the value associated with the key as a modifiable reference.
 
const WeakValue operator[] (const RegExpCacheKey &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< RegExpCacheKey > keys () const
 Returns a list containing all the keys in the hash, in an arbitrary order.
 
QList< RegExpCacheKey > keys (const WeakValue &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< WeakValue > 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)
 
std::pair< iterator, iteratorequal_range (const RegExpCacheKey &key)
 
std::pair< const_iterator, const_iteratorequal_range (const RegExpCacheKey &key) const noexcept
 
iterator find (const RegExpCacheKey &key)
 Returns an iterator pointing to the item with the key in the hash.
 
const_iterator find (const RegExpCacheKey &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 RegExpCacheKey &key) const noexcept
 
iterator insert (const RegExpCacheKey &key, const WeakValue &value)
 Inserts a new item with the key and a value of value.
 
void insert (const QHash &hash)
 
iterator emplace (const RegExpCacheKey &key, Args &&... args)
 
iterator emplace (RegExpCacheKey &&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< RegExpCacheKey, WeakValue >
using key_type
 Typedef for Key.
 
using mapped_type
 Typedef for T.
 
using value_type
 
using size_type
 Typedef for int.
 
using difference_type
 Typedef for ptrdiff_t.
 
using reference
 
using const_reference
 
typedef QKeyValueIterator< const RegExpCacheKey &, const WeakValue &, const_iteratorconst_key_value_iterator
 \inmodule QtCore
 
typedef QKeyValueIterator< const RegExpCacheKey &, WeakValue &, iteratorkey_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< RegExpCacheKey, WeakValue >
static float max_load_factor () noexcept
 
static size_t max_bucket_count () noexcept
 

Detailed Description

Definition at line 136 of file qv4regexp_p.h.

Constructor & Destructor Documentation

◆ ~RegExpCache()

RegExpCache::~RegExpCache ( )

Definition at line 32 of file qv4regexp.cpp.

References QHash< RegExpCacheKey, WeakValue >::begin(), QHash< RegExpCacheKey, WeakValue >::end(), and it.

+ Here is the call graph for this function:

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