KDbUtils::CaseInsensitiveHash

Search for usage in LXR

KDbUtils::CaseInsensitiveHash< Key, T > Class Template Reference

#include <KDbUtils.h>

Inheritance diagram for KDbUtils::CaseInsensitiveHash< Key, T >:

Public Member Functions

QHash< Key, T >::const_iterator constFind (const Key &key) const
 
bool contains (const Key &key) const
 
int count (const Key &key) const
 
QHash< Key, T >::iterator find (const Key &key) const
 
QHash< Key, T >::iterator insert (const Key &key, const T &value)
 
QHash< Key, T >::iterator insertMulti (const Key &key, const T &value)
 
const Key key (const T &value, const Key &defaultKey) const
 
T & operator[] (const Key &key)
 
const T operator[] (const Key &key) const
 
int remove (const Key &key)
 
const T take (const Key &key)
 
const T value (const Key &key) const
 
const T value (const Key &key, const T &defaultValue) const
 
QList< T > values (const Key &key) const
 
- Public Member Functions inherited from QHash< Key, T >
 QHash (const QHash< Key, T > &other)
 
 QHash (InputIterator begin, InputIterator end)
 
 QHash (QHash< Key, T > &&other)
 
 QHash (std::initializer_list< std::pair< Key, T > > list)
 
auto asKeyValueRange () &
 
auto asKeyValueRange () &&
 
auto asKeyValueRange () const &&const
 
auto asKeyValueRange () const &const
 
iterator begin ()
 
const_iterator begin () const const
 
qsizetype capacity () const const
 
const_iterator cbegin () const const
 
const_iterator cend () const const
 
void clear ()
 
const_iterator constBegin () const const
 
const_iterator constEnd () const const
 
const_iterator constFind (const Key &key) const const
 
const_key_value_iterator constKeyValueBegin () const const
 
const_key_value_iterator constKeyValueEnd () const const
 
bool contains (const Key &key) const const
 
qsizetype count () const const
 
qsizetype count (const Key &key) const const
 
iterator emplace (const Key &key, Args &&... args)
 
iterator emplace (Key &&key, Args &&... args)
 
bool empty () const const
 
iterator end ()
 
const_iterator end () const const
 
iterator erase (const_iterator pos)
 
qsizetype erase_if (QHash< Key, T > &hash, Predicate pred)
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const const
 
iterator insert (const Key &key, const T &value)
 
void insert (const QHash< Key, T > &other)
 
bool isEmpty () const const
 
Key key (const T &value) const const
 
Key key (const T &value, const Key &defaultKey) const const
 
key_iterator keyBegin () const const
 
key_iterator keyEnd () const const
 
QList< Key > keys () const const
 
QList< Key > keys (const T &value) const const
 
key_value_iterator keyValueBegin ()
 
const_key_value_iterator keyValueBegin () const const
 
key_value_iterator keyValueEnd ()
 
const_key_value_iterator keyValueEnd () const const
 
float load_factor () const const
 
bool operator!= (const QHash< Key, T > &other) const const
 
QDataStreamoperator<< (QDataStream &out, const QHash< Key, T > &hash)
 
QHash< Key, T > & operator= (const QHash< Key, T > &other)
 
QHash< Key, T > & operator= (QHash< Key, T > &&other)
 
bool operator== (const QHash< Key, T > &other) const const
 
QDataStreamoperator>> (QDataStream &in, QHash< Key, T > &hash)
 
T & operator[] (const Key &key)
 
const T operator[] (const Key &key) const const
 
int qGlobalQHashSeed ()
 
size_t qHash (char key, size_t seed)
 
size_t qHash (char16_t key, size_t seed)
 
size_t qHash (char32_t key, size_t seed)
 
size_t qHash (char8_t key, size_t seed)
 
size_t qHash (const QBitArray &key, size_t seed)
 
size_t qHash (const QByteArray &key, size_t seed)
 
size_t qHash (const QChar key, size_t seed)
 
size_t qHash (const QDateTime &key, size_t seed)
 
size_t qHash (const QHash< Key, T > &key, size_t seed)
 
size_t qHash (const QSet< T > &key, size_t seed)
 
size_t qHash (const QString &key, size_t seed)
 
size_t qHash (const QTypeRevision &key, size_t seed)
 
size_t qHash (const QUrl &url, size_t seed)
 
size_t qHash (const QVersionNumber &key, size_t seed)
 
size_t qHash (const std::pair< T1, T2 > &key, size_t seed)
 
size_t qHash (const T *key, size_t seed)
 
size_t qHash (double key, size_t seed)
 
size_t qHash (float key, size_t seed)
 
size_t qHash (int key, size_t seed)
 
size_t qHash (long double key, size_t seed)
 
size_t qHash (long key, size_t seed)
 
size_t qHash (QDate key, size_t seed)
 
size_t qHash (qint64 key, size_t seed)
 
size_t qHash (QLatin1StringView key, size_t seed)
 
size_t qHash (QPoint key, size_t seed)
 
size_t qHash (QTime key, size_t seed)
 
size_t qHash (quint64 key, size_t seed)
 
size_t qHash (short key, size_t seed)
 
size_t qHash (signed char key, size_t seed)
 
size_t qHash (std::nullptr_t key, size_t seed)
 
size_t qHash (uchar key, size_t seed)
 
size_t qHash (uint key, size_t seed)
 
size_t qHash (ulong key, size_t seed)
 
size_t qHash (ushort key, size_t seed)
 
size_t qHash (wchar_t key, size_t seed)
 
size_t qHashBits (const void *p, size_t len, size_t seed)
 
size_t qHashMulti (size_t seed, const T &... args)
 
size_t qHashMultiCommutative (size_t seed, const T &... args)
 
size_t qHashRange (InputIterator first, InputIterator last, size_t seed)
 
size_t qHashRangeCommutative (InputIterator first, InputIterator last, size_t seed)
 
void qSetGlobalQHashSeed (int newSeed)
 
bool remove (const Key &key)
 
qsizetype removeIf (Predicate pred)
 
void reserve (qsizetype size)
 
qsizetype size () const const
 
void squeeze ()
 
void swap (QHash< Key, T > &other)
 
take (const Key &key)
 
value (const Key &key) const const
 
value (const Key &key, const T &defaultValue) const const
 
QList< T > values () const const
 

Additional Inherited Members

- Public Types inherited from QHash< Key, T >
typedef  const_key_value_iterator
 
typedef  ConstIterator
 
typedef  difference_type
 
typedef  Iterator
 
typedef  key_type
 
typedef  key_value_iterator
 
typedef  mapped_type
 
typedef  size_type
 

Detailed Description

template<typename Key, typename T>
class KDbUtils::CaseInsensitiveHash< Key, T >

Case insensitive hash container supporting QString or QByteArray keys.

Keys are turned to lowercase before inserting.

Definition at line 338 of file KDbUtils.h.

Constructor & Destructor Documentation

◆ CaseInsensitiveHash()

template<typename Key , typename T >
KDbUtils::CaseInsensitiveHash< Key, T >::CaseInsensitiveHash ( )
inline

Definition at line 341 of file KDbUtils.h.

Member Function Documentation

◆ constFind()

template<typename Key , typename T >
QHash< Key, T >::const_iterator KDbUtils::CaseInsensitiveHash< Key, T >::constFind ( const Key & key) const
inline

Definition at line 345 of file KDbUtils.h.

◆ contains()

template<typename Key , typename T >
bool KDbUtils::CaseInsensitiveHash< Key, T >::contains ( const Key & key) const
inline

Definition at line 348 of file KDbUtils.h.

◆ count()

template<typename Key , typename T >
int KDbUtils::CaseInsensitiveHash< Key, T >::count ( const Key & key) const
inline

Definition at line 351 of file KDbUtils.h.

◆ find()

template<typename Key , typename T >
QHash< Key, T >::iterator KDbUtils::CaseInsensitiveHash< Key, T >::find ( const Key & key) const
inline

Definition at line 342 of file KDbUtils.h.

◆ insert()

template<typename Key , typename T >
QHash< Key, T >::iterator KDbUtils::CaseInsensitiveHash< Key, T >::insert ( const Key & key,
const T & value )
inline

Definition at line 354 of file KDbUtils.h.

◆ insertMulti()

template<typename Key , typename T >
QHash< Key, T >::iterator KDbUtils::CaseInsensitiveHash< Key, T >::insertMulti ( const Key & key,
const T & value )
inline

Definition at line 357 of file KDbUtils.h.

◆ key()

template<typename Key , typename T >
const Key KDbUtils::CaseInsensitiveHash< Key, T >::key ( const T & value,
const Key & defaultKey ) const
inline

Definition at line 360 of file KDbUtils.h.

◆ operator[]() [1/2]

template<typename Key , typename T >
T & KDbUtils::CaseInsensitiveHash< Key, T >::operator[] ( const Key & key)
inline

Definition at line 378 of file KDbUtils.h.

◆ operator[]() [2/2]

template<typename Key , typename T >
const T KDbUtils::CaseInsensitiveHash< Key, T >::operator[] ( const Key & key) const
inline

Definition at line 381 of file KDbUtils.h.

◆ remove()

template<typename Key , typename T >
int KDbUtils::CaseInsensitiveHash< Key, T >::remove ( const Key & key)
inline

Definition at line 363 of file KDbUtils.h.

◆ take()

template<typename Key , typename T >
const T KDbUtils::CaseInsensitiveHash< Key, T >::take ( const Key & key)
inline

Definition at line 366 of file KDbUtils.h.

◆ value() [1/2]

template<typename Key , typename T >
const T KDbUtils::CaseInsensitiveHash< Key, T >::value ( const Key & key) const
inline

Definition at line 369 of file KDbUtils.h.

◆ value() [2/2]

template<typename Key , typename T >
const T KDbUtils::CaseInsensitiveHash< Key, T >::value ( const Key & key,
const T & defaultValue ) const
inline

Definition at line 372 of file KDbUtils.h.

◆ values()

template<typename Key , typename T >
QList< T > KDbUtils::CaseInsensitiveHash< Key, T >::values ( const Key & key) const
inline

Definition at line 375 of file KDbUtils.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.