KDbUtils::AutodeletedHash

Search for usage in LXR

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

#include <KDbUtils.h>

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

Public Member Functions

 AutodeletedHash (bool autoDelete=true)
 
 AutodeletedHash (const AutodeletedHash &other)
 
bool autoDelete () const
 
void clear ()
 
QHash< Key, T >::iterator erase (typename QHash< Key, T >::iterator pos)
 
QHash< Key, T >::iterator insert (const Key &key, const T &value)
 
int remove (const Key &key)
 
void setAutoDelete (bool set)
 
- Public Member Functions inherited from QHash< Key, T >
 QHash (const QHash< K, V > &other)
 
 QHash (InputIterator begin, InputIterator end)
 
 QHash (QHash< K, V > &&other)
 
 QHash (std::initializer_list< std::pair< Key, T > > list)
 
QHash::iterator begin ()
 
QHash::const_iterator begin () const const
 
int capacity () const const
 
QHash::const_iterator cbegin () const const
 
QHash::const_iterator cend () const const
 
void clear ()
 
QHash::const_iterator constBegin () const const
 
QHash::const_iterator constEnd () const const
 
QHash::const_iterator constFind (const Key &key) const const
 
QHash::const_key_value_iterator constKeyValueBegin () const const
 
QHash::const_key_value_iterator constKeyValueEnd () const const
 
bool contains (const Key &key) const const
 
int count () const const
 
int count (const Key &key) const const
 
bool empty () const const
 
QHash::iterator end ()
 
QHash::const_iterator end () const const
 
QPair< QHash::iterator, QHash::iteratorequal_range (const Key &key)
 
QPair< QHash::const_iterator, QHash::const_iteratorequal_range (const Key &key) const const
 
QHash::iterator erase (QHash::const_iterator pos)
 
QHash::iterator erase (QHash::iterator pos)
 
QHash::iterator find (const Key &key)
 
QHash::const_iterator find (const Key &key) const const
 
QHash::iterator insert (const Key &key, const T &value)
 
void insert (const QHash< K, V > &other)
 
QHash::iterator insertMulti (const Key &key, const T &value)
 
bool isEmpty () const const
 
const Key key (const T &value) const const
 
const Key key (const T &value, const Key &defaultKey) const const
 
QHash::key_iterator keyBegin () const const
 
QHash::key_iterator keyEnd () const const
 
QList< Key > keys () const const
 
QList< Key > keys (const T &value) const const
 
QHash::key_value_iterator keyValueBegin ()
 
QHash::const_key_value_iterator keyValueBegin () const const
 
QHash::key_value_iterator keyValueEnd ()
 
QHash::const_key_value_iterator keyValueEnd () const const
 
bool operator!= (const QHash< K, V > &other) const const
 
QDataStreamoperator<< (QDataStream &out, const QHash< Key, T > &hash)
 
QHash< K, V > & operator= (const QHash< K, V > &other)
 
QHash< K, V > & operator= (QHash< K, V > &&other)
 
bool operator== (const QHash< K, V > &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 ()
 
uint qHash (char key, uint seed)
 
uint qHash (const QBitArray &key, uint seed)
 
uint qHash (const QByteArray &key, uint seed)
 
uint qHash (const QChar key, uint seed)
 
uint qHash (const QDate &key, uint seed)
 
uint qHash (const QDateTime &key, uint seed)
 
uint qHash (const QHash< Key, T > &key, uint seed)
 
uint qHash (const QPair< T1, T2 > &key, uint seed)
 
uint qHash (const QSet< T > &key, uint seed)
 
uint qHash (const QString &key, uint seed)
 
uint qHash (const QStringRef &key, uint seed)
 
uint qHash (const QTime &key, uint seed)
 
uint qHash (const QUrl &url, uint seed)
 
uint qHash (const QVersionNumber &key, uint seed)
 
uint qHash (const std::pair< T1, T2 > &key, uint seed)
 
uint qHash (const T *key, uint seed)
 
uint qHash (double key, uint seed)
 
uint qHash (float key, uint seed)
 
uint qHash (int key, uint seed)
 
uint qHash (long double key, uint seed)
 
uint qHash (long key, uint seed)
 
uint qHash (qint64 key, uint seed)
 
uint qHash (QLatin1String key, uint seed)
 
uint qHash (quint64 key, uint seed)
 
uint qHash (short key, uint seed)
 
uint qHash (signed char key, uint seed)
 
uint qHash (uchar key, uint seed)
 
uint qHash (uint key, uint seed)
 
uint qHash (ulong key, uint seed)
 
uint qHash (ushort key, uint seed)
 
uint qHashBits (const void *p, size_t len, uint seed)
 
uint qHashRange (InputIterator first, InputIterator last, uint seed)
 
uint qHashRangeCommutative (InputIterator first, InputIterator last, uint seed)
 
void qSetGlobalQHashSeed (int newSeed)
 
int remove (const Key &key)
 
void reserve (int size)
 
int size () const const
 
void squeeze ()
 
void swap (QHash< K, V > &other)
 
take (const Key &key)
 
QList< Key > uniqueKeys () const const
 
QHash< K, V > & unite (const QHash< K, V > &other)
 
const T value (const Key &key) const const
 
const T value (const Key &key, const T &defaultValue) const const
 
QList< T > values () const const
 
QList< T > values (const Key &key) const const
 

Additional Inherited Members

- Public Attributes 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<class Key, class T>
class KDbUtils::AutodeletedHash< Key, T >

Autodeleting hash.

Definition at line 178 of file KDbUtils.h.

Constructor & Destructor Documentation

◆ AutodeletedHash() [1/2]

template<class Key , class T >
KDbUtils::AutodeletedHash< Key, T >::AutodeletedHash ( const AutodeletedHash< Key, T > &  other)
inline

Creates autodeleting hash as a copy of other.

Auto-deletion is not enabled as it would cause double deletion for items. If you enable auto-deletion on here, make sure you disable it in the other hash.

Definition at line 184 of file KDbUtils.h.

◆ AutodeletedHash() [2/2]

template<class Key , class T >
KDbUtils::AutodeletedHash< Key, T >::AutodeletedHash ( bool  autoDelete = true)
inline

Creates empty autodeleting hash.

Auto-deletion is enabled by default.

Definition at line 188 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-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:09:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.