![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qdirectfbconvenience.h>
Public Member Functions | |
QDirectFbKeyMap () | |
Public Member Functions inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key > | |
QHash () noexcept=default | |
Constructs an empty hash. | |
~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 |
qsizetype | removeIf (Predicate pred) |
Qt::Key | take (const DFBInputDeviceKeySymbol &key) |
Removes the item with the key from the hash and returns the value associated with it. | |
bool | contains (const DFBInputDeviceKeySymbol &key) const noexcept |
Returns true if the hash contains an item with the key; otherwise returns false . | |
qsizetype | count (const DFBInputDeviceKeySymbol &key) const noexcept |
Returns the number of items associated with the key. | |
DFBInputDeviceKeySymbol | key (const Qt::Key &value) const noexcept |
Qt::Key | value (const DFBInputDeviceKeySymbol &key) const noexcept |
Qt::Key & | operator[] (const DFBInputDeviceKeySymbol &key) |
Returns the value associated with the key as a modifiable reference. | |
QList< DFBInputDeviceKeySymbol > | keys () const |
Returns a list containing all the keys in the hash, in an arbitrary order. | |
QList< Qt::Key > | 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 | 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 | 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 () |
key_value_iterator | keyValueEnd () |
const_key_value_iterator | constKeyValueBegin () const noexcept |
const_key_value_iterator | constKeyValueEnd () const noexcept |
auto | asKeyValueRange () & |
iterator | erase (const_iterator it) |
std::pair< iterator, iterator > | equal_range (const DFBInputDeviceKeySymbol &key) |
iterator | find (const DFBInputDeviceKeySymbol &key) |
Returns an iterator pointing to the item with the key in the hash. | |
const_iterator | constFind (const DFBInputDeviceKeySymbol &key) const noexcept |
iterator | insert (const DFBInputDeviceKeySymbol &key, const Qt::Key &value) |
Inserts a new item with the key and a value of value. | |
iterator | emplace (const DFBInputDeviceKeySymbol &key, Args &&... args) |
TryEmplaceResult | tryEmplace (const DFBInputDeviceKeySymbol &key, Args &&...args) |
\variable QHash::TryEmplaceResult::iterator | |
TryEmplaceResult | tryInsert (const DFBInputDeviceKeySymbol &key, const Qt::Key &value) |
std::pair< key_value_iterator, bool > | try_emplace (const DFBInputDeviceKeySymbol &key, Args &&...args) |
TryEmplaceResult | insertOrAssign (const DFBInputDeviceKeySymbol &key, Value &&value) |
std::pair< key_value_iterator, bool > | insert_or_assign (const DFBInputDeviceKeySymbol &key, Value &&value) |
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< DFBInputDeviceKeySymbol, Qt::Key > | |
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 DFBInputDeviceKeySymbol &, const Qt::Key &, const_iterator > | const_key_value_iterator |
\inmodule QtCore | |
typedef QKeyValueIterator< const DFBInputDeviceKeySymbol &, Qt::Key &, 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< DFBInputDeviceKeySymbol, Qt::Key > | |
static float | max_load_factor () noexcept |
static size_t | max_bucket_count () noexcept |
Related Symbols inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key > | |
template< typename... Qt::Key > size_t | qHashMulti (size_t seed, const Qt::Key &...args) |
template< typename... Qt::Key > size_t | qHashMultiCommutative (size_t seed, const Qt::Key &...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 Qt::Key > bool | qHashEquals (const Qt::Key &a, const Qt::Key &b) |
template< class DFBInputDeviceKeySymbol, class Qt::Key > QDataStream & | operator<< (QDataStream &out, const QHash< DFBInputDeviceKeySymbol, Qt::Key > &hash) |
Writes the hash hash to stream out. | |
template< class DFBInputDeviceKeySymbol, class Qt::Key > QDataStream & | operator>> (QDataStream &in, QHash< DFBInputDeviceKeySymbol, Qt::Key > &hash) |
Reads a hash from stream in into hash. | |
template< typename DFBInputDeviceKeySymbol, typename Qt::Key, typename Predicate > qsizetype | erase_if (QHash< DFBInputDeviceKeySymbol, Qt::Key > &hash, Predicate pred) |
size_t | qHash (const QGeoCoordinate &coordinate, size_t seed=0) |
Returns a hash value for coordinate, using seed to seed the calculation. |
Definition at line 20 of file qdirectfbconvenience.h.
QDirectFbKeyMap::QDirectFbKeyMap | ( | ) |
Definition at line 223 of file qdirectfbconvenience.cpp.
Referenced by QDirectFbConvenience::keyMap().