![]() |
Carousel
|
The ListDictionary class is specialisation for the multivalue string dictionary. More...
#include <ListDictionary.h>
Inherits QMap< TKey, QList< TValue > * >.
Public Member Functions | |
void | add (const TKey &key) |
void | add (const TKey &key, const TValue &value) |
![]() | |
QMap (const QMap< Key, T > &other) | |
QMap (const std::map< Key, T > &other) | |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
const_iterator | constFind (const Key &key) const |
bool | contains (const Key &key) const |
int | count () const |
int | count (const Key &key) const |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
iterator | erase (iterator pos) |
void | erase (const Key &key) |
iterator | find (const Key &key) |
const_iterator | find (const Key &key) const |
iterator | insert (const Key &key, const T &value) |
iterator | insert (const Key &key, const T &value, bool overwrite) |
iterator | insertMulti (const Key &key, const T &value) |
bool | isEmpty () const |
const Key | key (const T &value) const |
const Key | key (const T &value, const Key &defaultKey) const |
QList< Key > | keys (const T &value) const |
QList< Key > | keys () const |
iterator | lowerBound (const Key &key) |
const_iterator | lowerBound (const Key &key) const |
bool | operator!= (const QMap< Key, T > &other) const |
QMap< Key, T > & | operator= (const QMap< Key, T > &other) |
bool | operator== (const QMap< Key, T > &other) const |
T & | operator[] (const Key &key) |
const T | operator[] (const Key &key) const |
int | remove (const Key &key) |
iterator | remove (iterator it) |
iterator | replace (const Key &key, const T &value) |
int | size () const |
void | swap (QMap< Key, T > &other) |
T | take (const Key &key) |
std::map< Key, T > | toStdMap () const |
QList< Key > | uniqueKeys () const |
QMap< Key, T > & | unite (const QMap< Key, T > &other) |
const_iterator | upperBound (const Key &key) const |
iterator | upperBound (const Key &key) |
const T | value (const Key &key, const T &defaultValue) const |
const T | value (const Key &key) const |
QList< T > | values () const |
QList< T > | values (const Key &key) const |
Additional Inherited Members | |
![]() | |
typedef | ConstIterator |
typedef | difference_type |
typedef | Iterator |
typedef | key_type |
typedef | mapped_type |
typedef | size_type |
The ListDictionary class is specialisation for the multivalue string dictionary.
void ListDictionary< TKey, TValue >::add | ( | const TKey & | key | ) |
Adds key with empty list to the dictionary.
void ListDictionary< TKey, TValue >::add | ( | const TKey & | key, |
const TValue & | value | ||
) |
Adds value to the list for specified key. If lists not found for this key, adds key with empty list to the dictionary.