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
QMultiMap< Key, T > Class Template Reference

#include <qmap.h>

+ Collaboration diagram for QMultiMap< Key, T >:

Classes

class  const_iterator
 
class  iterator
 
class  key_iterator
 

Public Types

using key_type = Key
 
using mapped_type = T
 
using difference_type = qptrdiff
 
using size_type = qsizetype
 
typedef QKeyValueIterator< const Key &, const T &, const_iteratorconst_key_value_iterator
 
typedef QKeyValueIterator< const Key &, T &, iteratorkey_value_iterator
 
typedef iterator Iterator
 
typedef const_iterator ConstIterator
 

Public Member Functions

 QMultiMap ()=default
 
 QMultiMap (std::initializer_list< std::pair< Key, T > > list)
 
void swap (QMultiMap< Key, T > &other) noexcept
 
 QMultiMap (const QMap< Key, T > &other)
 
 QMultiMap (QMap< Key, T > &&other)
 
 QMultiMap (const std::multimap< Key, T > &other)
 
 QMultiMap (std::multimap< Key, T > &&other)
 
std::multimap< Key, T > toStdMap () const
 
std::multimap< Key, T > toStdMultiMap () const &
 
std::multimap< Key, T > toStdMultiMap () &&
 
size_type size () const
 
bool isEmpty () const
 
void detach ()
 
bool isDetached () const noexcept
 
bool isSharedWith (const QMultiMap< Key, T > &other) const noexcept
 
void clear ()
 
size_type remove (const Key &key)
 
size_type remove (const Key &key, const T &value)
 
template<typename Predicate >
size_type removeIf (Predicate pred)
 
take (const Key &key)
 
bool contains (const Key &key) const
 
bool contains (const Key &key, const T &value) const
 
Key key (const T &value, const Key &defaultKey=Key()) const
 
value (const Key &key, const T &defaultValue=T()) const
 
QList< Keykeys () const
 
QList< Keykeys (const T &value) const
 
QList< KeyuniqueKeys () const
 
QList< T > values () const
 
QList< T > values (const Key &key) const
 
size_type count (const Key &key) const
 
size_type count (const Key &key, const T &value) const
 
const KeyfirstKey () const
 
const KeylastKey () const
 
T & first ()
 
const T & first () const
 
T & last ()
 
const T & last () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator constEnd () const
 
const_iterator cend () const
 
key_iterator keyBegin () const
 
key_iterator keyEnd () const
 
key_value_iterator keyValueBegin ()
 
key_value_iterator keyValueEnd ()
 
const_key_value_iterator keyValueBegin () const
 
const_key_value_iterator constKeyValueBegin () const
 
const_key_value_iterator keyValueEnd () const
 
const_key_value_iterator constKeyValueEnd () const
 
auto asKeyValueRange () &
 
auto asKeyValueRange () const &
 
auto asKeyValueRange () &&
 
auto asKeyValueRange () const &&
 
iterator erase (const_iterator it)
 
iterator erase (const_iterator afirst, const_iterator alast)
 
size_type count () const
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const
 
const_iterator constFind (const Key &key) const
 
iterator find (const Key &key, const T &value)
 
const_iterator find (const Key &key, const T &value) const
 
const_iterator constFind (const Key &key, const T &value) const
 
iterator lowerBound (const Key &key)
 
const_iterator lowerBound (const Key &key) const
 
iterator upperBound (const Key &key)
 
const_iterator upperBound (const Key &key) const
 
iterator insert (const Key &key, const T &value)
 
iterator insert (const_iterator pos, const Key &key, const T &value)
 
iterator replace (const Key &key, const T &value)
 
bool empty () const
 
std::pair< iterator, iteratorequal_range (const Key &akey)
 
std::pair< const_iterator, const_iteratorequal_range (const Key &akey) const
 
QMultiMapunite (const QMultiMap &other)
 
QMultiMapunite (QMultiMap< Key, T > &&other)
 

Friends

template<typename AKey = Key, typename AT = T>
QTypeTraits::compare_eq_result_container< QMultiMap, AKey, AToperator== (const QMultiMap &lhs, const QMultiMap &rhs)
 
template<typename AKey = Key, typename AT = T>
QTypeTraits::compare_eq_result_container< QMultiMap, AKey, AToperator!= (const QMultiMap &lhs, const QMultiMap &rhs)
 

Detailed Description

template<class Key, class T>
class QMultiMap< Key, T >

Definition at line 823 of file qmap.h.

Member Typedef Documentation

◆ const_key_value_iterator

template<class Key , class T >
typedef QKeyValueIterator<const Key&, const T&, const_iterator> QMultiMap< Key, T >::const_key_value_iterator

Definition at line 1319 of file qmap.h.

◆ ConstIterator

template<class Key , class T >
typedef const_iterator QMultiMap< Key, T >::ConstIterator

Definition at line 1364 of file qmap.h.

◆ difference_type

template<class Key , class T >
using QMultiMap< Key, T >::difference_type = qptrdiff

Definition at line 832 of file qmap.h.

◆ Iterator

template<class Key , class T >
typedef iterator QMultiMap< Key, T >::Iterator

Definition at line 1363 of file qmap.h.

◆ key_type

template<class Key , class T >
using QMultiMap< Key, T >::key_type = Key

Definition at line 830 of file qmap.h.

◆ key_value_iterator

template<class Key , class T >
typedef QKeyValueIterator<const Key&, T&, iterator> QMultiMap< Key, T >::key_value_iterator

Definition at line 1320 of file qmap.h.

◆ mapped_type

template<class Key , class T >
using QMultiMap< Key, T >::mapped_type = T

Definition at line 831 of file qmap.h.

◆ size_type

template<class Key , class T >
using QMultiMap< Key, T >::size_type = qsizetype

Definition at line 833 of file qmap.h.

Constructor & Destructor Documentation

◆ QMultiMap() [1/6]

template<class Key , class T >
QMultiMap< Key, T >::QMultiMap ( )
default

Referenced by QMultiMap< Key, T >::equal_range(), QMultiMap< Key, T >::find(), QMultiMap< Key, T >::find(), QMultiMap< Key, T >::insert(), QMultiMap< Key, T >::insert(), QMultiMap< Key, T >::lowerBound(), QMultiMap< Key, T >::replace(), QMultiMap< Key, T >::take(), and QMultiMap< Key, T >::upperBound().

+ Here is the caller graph for this function:

◆ QMultiMap() [2/6]

template<class Key , class T >
QMultiMap< Key, T >::QMultiMap ( std::initializer_list< std::pair< Key, T > > list)
inline

Definition at line 839 of file qmap.h.

References QMultiMap< Key, T >::insert(), and list.

+ Here is the call graph for this function:

◆ QMultiMap() [3/6]

template<class Key , class T >
QMultiMap< Key, T >::QMultiMap ( const QMap< Key, T > & other)
inlineexplicit

Definition at line 850 of file qmap.h.

References d, other(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ QMultiMap() [4/6]

template<class Key , class T >
QMultiMap< Key, T >::QMultiMap ( QMap< Key, T > && other)
inlineexplicit

Definition at line 860 of file qmap.h.

References d, other(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ QMultiMap() [5/6]

template<class Key , class T >
QMultiMap< Key, T >::QMultiMap ( const std::multimap< Key, T > & other)
inlineexplicit

Definition at line 879 of file qmap.h.

References d.

◆ QMultiMap() [6/6]

template<class Key , class T >
QMultiMap< Key, T >::QMultiMap ( std::multimap< Key, T > && other)
inlineexplicit

Definition at line 884 of file qmap.h.

References d.

Member Function Documentation

◆ asKeyValueRange() [1/4]

template<class Key , class T >
auto QMultiMap< Key, T >::asKeyValueRange ( ) &
inline

Definition at line 1339 of file qmap.h.

References QtPrivate::QKeyValueRange().

+ Here is the call graph for this function:

◆ asKeyValueRange() [2/4]

template<class Key , class T >
auto QMultiMap< Key, T >::asKeyValueRange ( ) &&
inline

Definition at line 1341 of file qmap.h.

References QtPrivate::QKeyValueRange().

+ Here is the call graph for this function:

◆ asKeyValueRange() [3/4]

template<class Key , class T >
auto QMultiMap< Key, T >::asKeyValueRange ( ) const &
inline

Definition at line 1340 of file qmap.h.

References QtPrivate::QKeyValueRange().

+ Here is the call graph for this function:

◆ asKeyValueRange() [4/4]

template<class Key , class T >
auto QMultiMap< Key, T >::asKeyValueRange ( ) const &&
inline

Definition at line 1342 of file qmap.h.

References QtPrivate::QKeyValueRange().

+ Here is the call graph for this function:

◆ begin() [1/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::begin ( )
inline

Definition at line 1323 of file qmap.h.

References d, and QMultiMap< Key, T >::detach().

Referenced by QMultiMap< Key, T >::cbegin(), QFontCache::clear(), QMultiMap< Key, T >::constBegin(), QMultiMap< Key, T >::constKeyValueBegin(), QQmlProfilerServiceImpl::dataReady(), QQmlJS::Dom::FieldFilter::describeFieldsFilter(), QMultiMap< Key, T >::first(), QMultiMap< Key, T >::keyBegin(), QMultiMap< Key, T >::keyValueBegin(), QMultiMap< Key, T >::keyValueBegin(), and QGraphicsScenePrivate::removeItemHelper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ begin() [2/2]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::begin ( ) const
inline

Definition at line 1324 of file qmap.h.

References d.

◆ cbegin()

template<class Key , class T >
const_iterator QMultiMap< Key, T >::cbegin ( ) const
inline

Definition at line 1326 of file qmap.h.

References QMultiMap< Key, T >::begin().

Referenced by QQmlProfilerServiceImpl::dataReady().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cend()

template<class Key , class T >
const_iterator QMultiMap< Key, T >::cend ( ) const
inline

Definition at line 1330 of file qmap.h.

References QMultiMap< Key, T >::end().

Referenced by QQmlProfilerServiceImpl::dataReady(), and QHttpNetworkConnectionPrivate::removeReply().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clear()

template<class Key , class T >
void QMultiMap< Key, T >::clear ( )
inline

Definition at line 960 of file qmap.h.

References d.

Referenced by QFontCache::clear(), and QHttp2ProtocolHandler::sendRequest().

+ Here is the caller graph for this function:

◆ constBegin()

template<class Key , class T >
const_iterator QMultiMap< Key, T >::constBegin ( ) const
inline

Definition at line 1325 of file qmap.h.

References QMultiMap< Key, T >::begin().

Referenced by QMultiMap< Key, T >::first(), and QMultiMap< Key, T >::firstKey().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ constEnd()

template<class Key , class T >
const_iterator QMultiMap< Key, T >::constEnd ( ) const
inline

Definition at line 1329 of file qmap.h.

References QMultiMap< Key, T >::end().

Referenced by QMultiMap< Key, T >::last(), and QMultiMap< Key, T >::lastKey().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ constFind() [1/2]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::constFind ( const Key & key) const
inline

Definition at line 1385 of file qmap.h.

References QMultiMap< Key, T >::find().

+ Here is the call graph for this function:

◆ constFind() [2/2]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::constFind ( const Key & key,
const T & value ) const
inline

Definition at line 1419 of file qmap.h.

References QMultiMap< Key, T >::find().

+ Here is the call graph for this function:

◆ constKeyValueBegin()

template<class Key , class T >
const_key_value_iterator QMultiMap< Key, T >::constKeyValueBegin ( ) const
inline

Definition at line 1336 of file qmap.h.

References QMultiMap< Key, T >::begin().

+ Here is the call graph for this function:

◆ constKeyValueEnd()

template<class Key , class T >
const_key_value_iterator QMultiMap< Key, T >::constKeyValueEnd ( ) const
inline

Definition at line 1338 of file qmap.h.

References QMultiMap< Key, T >::end().

+ Here is the call graph for this function:

◆ contains() [1/2]

template<class Key , class T >
bool QMultiMap< Key, T >::contains ( const Key & key) const
inline

Definition at line 1045 of file qmap.h.

References d, and i.

Referenced by QGraphicsScenePrivate::filterEvent(), QFontCache::insertEngine(), and QGraphicsScenePrivate::removeSceneEventFilter().

+ Here is the caller graph for this function:

◆ contains() [2/2]

template<class Key , class T >
bool QMultiMap< Key, T >::contains ( const Key & key,
const T & value ) const
inline

Definition at line 1053 of file qmap.h.

References QMultiMap< Key, T >::end(), and QMultiMap< Key, T >::find().

+ Here is the call graph for this function:

◆ count() [1/3]

template<class Key , class T >
size_type QMultiMap< Key, T >::count ( ) const
inline

Definition at line 1366 of file qmap.h.

References QMultiMap< Key, T >::size().

+ Here is the call graph for this function:

◆ count() [2/3]

template<class Key , class T >
size_type QMultiMap< Key, T >::count ( const Key & key) const
inline

Definition at line 1121 of file qmap.h.

References d.

◆ count() [3/3]

template<class Key , class T >
size_type QMultiMap< Key, T >::count ( const Key & key,
const T & value ) const
inline

Definition at line 1128 of file qmap.h.

References d.

◆ detach()

template<class Key , class T >
void QMultiMap< Key, T >::detach ( )
inline

◆ empty()

template<class Key , class T >
bool QMultiMap< Key, T >::empty ( ) const
inline

Definition at line 1520 of file qmap.h.

References QMultiMap< Key, T >::isEmpty().

+ Here is the call graph for this function:

◆ end() [1/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::end ( )
inline

Definition at line 1327 of file qmap.h.

References d, and QMultiMap< Key, T >::detach().

Referenced by QMultiMap< Key, T >::cend(), QFontCache::clear(), QMultiMap< Key, T >::constEnd(), QMultiMap< Key, T >::constKeyValueEnd(), QMultiMap< Key, T >::contains(), QQmlProfilerServiceImpl::dataReady(), QQmlJS::Dom::FieldFilter::describeFieldsFilter(), QFontCache::findEngine(), QMultiMap< Key, T >::keyEnd(), QMultiMap< Key, T >::keyValueEnd(), QMultiMap< Key, T >::keyValueEnd(), QMultiMap< Key, T >::last(), and QGraphicsScenePrivate::removeItemHelper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ end() [2/2]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::end ( ) const
inline

Definition at line 1328 of file qmap.h.

References d.

◆ equal_range() [1/2]

template<class Key , class T >
std::pair< iterator, iterator > QMultiMap< Key, T >::equal_range ( const Key & akey)
inline

Definition at line 1522 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), and this.

Referenced by QQmlMetaType::moduleImports(), and QMultiMap< Key, T >::values().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ equal_range() [2/2]

template<class Key , class T >
std::pair< const_iterator, const_iterator > QMultiMap< Key, T >::equal_range ( const Key & akey) const
inline

Definition at line 1530 of file qmap.h.

References d.

◆ erase() [1/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::erase ( const_iterator afirst,
const_iterator alast )
inline

Definition at line 1349 of file qmap.h.

References d.

◆ erase() [2/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::erase ( const_iterator it)
inline

Definition at line 1344 of file qmap.h.

References QMultiMap< Key, T >::erase(), and it.

Referenced by QQmlProfilerServiceImpl::dataReady(), QMultiMap< Key, T >::erase(), QGraphicsScenePrivate::removeItemHelper(), and QGraphicsScenePrivate::removeSceneEventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find() [1/4]

template<class Key , class T >
iterator QMultiMap< Key, T >::find ( const Key & key)
inline

Definition at line 1371 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), and this.

Referenced by QMultiMap< Key, T >::constFind(), QMultiMap< Key, T >::constFind(), QMultiMap< Key, T >::contains(), and QFontCache::findEngine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find() [2/4]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::find ( const Key & key) const
inline

Definition at line 1378 of file qmap.h.

References d.

◆ find() [3/4]

template<class Key , class T >
iterator QMultiMap< Key, T >::find ( const Key & key,
const T & value )
inline

Definition at line 1390 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), i, and this.

+ Here is the call graph for this function:

◆ find() [4/4]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::find ( const Key & key,
const T & value ) const
inline

Definition at line 1405 of file qmap.h.

References d, and i.

◆ first() [1/2]

template<class Key , class T >
T & QMultiMap< Key, T >::first ( )
inline

Definition at line 1144 of file qmap.h.

References QMultiMap< Key, T >::begin(), QMultiMap< Key, T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ first() [2/2]

template<class Key , class T >
const T & QMultiMap< Key, T >::first ( ) const
inline

Definition at line 1145 of file qmap.h.

References QMultiMap< Key, T >::constBegin(), QMultiMap< Key, T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ firstKey()

template<class Key , class T >
const Key & QMultiMap< Key, T >::firstKey ( ) const
inline

Definition at line 1141 of file qmap.h.

References QMultiMap< Key, T >::constBegin(), QMultiMap< Key, T >::isEmpty(), QMultiMap< Key, T >::const_iterator::key(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ insert() [1/2]

◆ insert() [2/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::insert ( const_iterator pos,
const Key & key,
const T & value )
inline

Definition at line 1462 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), pos, and this.

+ Here is the call graph for this function:

◆ isDetached()

template<class Key , class T >
bool QMultiMap< Key, T >::isDetached ( ) const
inlinenoexcept

Definition at line 950 of file qmap.h.

References d.

◆ isEmpty()

template<class Key , class T >
bool QMultiMap< Key, T >::isEmpty ( ) const
inline

Definition at line 940 of file qmap.h.

References d.

Referenced by QHttpNetworkConnectionChannel::_q_encrypted(), QMultiMap< Key, T >::empty(), QHttpNetworkConnectionChannel::ensureConnection(), QMultiMap< Key, T >::first(), QMultiMap< Key, T >::first(), QMultiMap< Key, T >::firstKey(), QMultiMap< Key, T >::last(), QMultiMap< Key, T >::last(), and QMultiMap< Key, T >::lastKey().

+ Here is the caller graph for this function:

◆ isSharedWith()

template<class Key , class T >
bool QMultiMap< Key, T >::isSharedWith ( const QMultiMap< Key, T > & other) const
inlinenoexcept

Definition at line 955 of file qmap.h.

References d, and other().

+ Here is the call graph for this function:

◆ key()

template<class Key , class T >
Key QMultiMap< Key, T >::key ( const T & value,
const Key & defaultKey = Key() ) const
inline

Definition at line 1058 of file qmap.h.

References d.

◆ keyBegin()

template<class Key , class T >
key_iterator QMultiMap< Key, T >::keyBegin ( ) const
inline

Definition at line 1331 of file qmap.h.

References QMultiMap< Key, T >::begin().

Referenced by QMultiMap< Key, T >::uniqueKeys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyEnd()

template<class Key , class T >
key_iterator QMultiMap< Key, T >::keyEnd ( ) const
inline

Definition at line 1332 of file qmap.h.

References QMultiMap< Key, T >::end().

Referenced by QMultiMap< Key, T >::uniqueKeys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keys() [1/2]

template<class Key , class T >
QList< Key > QMultiMap< Key, T >::keys ( ) const
inline

Definition at line 1076 of file qmap.h.

References d.

Referenced by QQmlJS::Dom::QmlDirectory::iterateDirectSubpaths().

+ Here is the caller graph for this function:

◆ keys() [2/2]

template<class Key , class T >
QList< Key > QMultiMap< Key, T >::keys ( const T & value) const
inline

Definition at line 1083 of file qmap.h.

References d.

◆ keyValueBegin() [1/2]

template<class Key , class T >
key_value_iterator QMultiMap< Key, T >::keyValueBegin ( )
inline

Definition at line 1333 of file qmap.h.

References QMultiMap< Key, T >::begin().

+ Here is the call graph for this function:

◆ keyValueBegin() [2/2]

template<class Key , class T >
const_key_value_iterator QMultiMap< Key, T >::keyValueBegin ( ) const
inline

Definition at line 1335 of file qmap.h.

References QMultiMap< Key, T >::begin().

+ Here is the call graph for this function:

◆ keyValueEnd() [1/2]

template<class Key , class T >
key_value_iterator QMultiMap< Key, T >::keyValueEnd ( )
inline

Definition at line 1334 of file qmap.h.

References QMultiMap< Key, T >::end().

+ Here is the call graph for this function:

◆ keyValueEnd() [2/2]

template<class Key , class T >
const_key_value_iterator QMultiMap< Key, T >::keyValueEnd ( ) const
inline

Definition at line 1337 of file qmap.h.

References QMultiMap< Key, T >::end().

+ Here is the call graph for this function:

◆ last() [1/2]

template<class Key , class T >
T & QMultiMap< Key, T >::last ( )
inline

Definition at line 1146 of file qmap.h.

References QMultiMap< Key, T >::end(), QMultiMap< Key, T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ last() [2/2]

template<class Key , class T >
const T & QMultiMap< Key, T >::last ( ) const
inline

Definition at line 1147 of file qmap.h.

References QMultiMap< Key, T >::constEnd(), QMultiMap< Key, T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ lastKey()

template<class Key , class T >
const Key & QMultiMap< Key, T >::lastKey ( ) const
inline

Definition at line 1142 of file qmap.h.

References QMultiMap< Key, T >::constEnd(), QMultiMap< Key, T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ lowerBound() [1/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::lowerBound ( const Key & key)
inline

Definition at line 1424 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), and this.

Referenced by QGraphicsScenePrivate::filterEvent(), and QGraphicsScenePrivate::removeSceneEventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lowerBound() [2/2]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::lowerBound ( const Key & key) const
inline

Definition at line 1431 of file qmap.h.

References d.

◆ remove() [1/2]

template<class Key , class T >
size_type QMultiMap< Key, T >::remove ( const Key & key)
inline

Definition at line 971 of file qmap.h.

References d.

Referenced by QQmlJS::Dom::FieldFilter::addFilter(), QQmlDebugTranslationServiceImpl::foundTranslationBinding(), QGestureManager::unregisterGestureRecognizer(), QQmlMetaType::unregisterModuleImport(), and QWaylandXdgShellPrivate::unregisterXdgSurface().

+ Here is the caller graph for this function:

◆ remove() [2/2]

template<class Key , class T >
size_type QMultiMap< Key, T >::remove ( const Key & key,
const T & value )
inline

Definition at line 987 of file qmap.h.

References d, QMultiMap< Key, T >::detach(), i, and Key.

+ Here is the call graph for this function:

◆ removeIf()

template<class Key , class T >
template<typename Predicate >
size_type QMultiMap< Key, T >::removeIf ( Predicate pred)
inline

Definition at line 1020 of file qmap.h.

References QtPrivate::associative_erase_if().

+ Here is the call graph for this function:

◆ replace()

template<class Key , class T >
iterator QMultiMap< Key, T >::replace ( const Key & key,
const T & value )
inline

Definition at line 1501 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), i, and this.

Referenced by QFontCache::insertEngine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

template<class Key , class T >
size_type QMultiMap< Key, T >::size ( ) const
inline

Definition at line 938 of file qmap.h.

References d.

Referenced by QHttpNetworkConnectionChannel::_q_connected(), QHttpNetworkConnectionChannel::_q_proxyAuthenticationRequired(), QMultiMap< Key, T >::count(), QFontCache::insertEngine(), and QMultiMap< Key, T >::uniqueKeys().

+ Here is the caller graph for this function:

◆ swap()

template<class Key , class T >
void QMultiMap< Key, T >::swap ( QMultiMap< Key, T > & other)
inlinenoexcept

Definition at line 845 of file qmap.h.

References d, and other().

+ Here is the call graph for this function:

◆ take()

template<class Key , class T >
T QMultiMap< Key, T >::take ( const Key & key)
inline

Definition at line 1025 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), i, and this.

+ Here is the call graph for this function:

◆ toStdMap()

template<class Key , class T >
std::multimap< Key, T > QMultiMap< Key, T >::toStdMap ( ) const
inline

Definition at line 891 of file qmap.h.

References QMultiMap< Key, T >::toStdMultiMap().

+ Here is the call graph for this function:

◆ toStdMultiMap() [1/2]

template<class Key , class T >
std::multimap< Key, T > QMultiMap< Key, T >::toStdMultiMap ( ) &&
inline

Definition at line 903 of file qmap.h.

References d.

◆ toStdMultiMap() [2/2]

template<class Key , class T >
std::multimap< Key, T > QMultiMap< Key, T >::toStdMultiMap ( ) const &
inline

Definition at line 896 of file qmap.h.

References d.

Referenced by QMultiMap< Key, T >::toStdMap().

+ Here is the caller graph for this function:

◆ uniqueKeys()

template<class Key , class T >
QList< Key > QMultiMap< Key, T >::uniqueKeys ( ) const
inline

Definition at line 1090 of file qmap.h.

References d, QMultiMap< Key, T >::keyBegin(), QMultiMap< Key, T >::keyEnd(), and QMultiMap< Key, T >::size().

Referenced by QTlsPrivate::X509CertificateBase::issuerInfoAttributes(), and QTlsPrivate::X509CertificateBase::subjectInfoAttributes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unite() [1/2]

template<class Key , class T >
QMultiMap & QMultiMap< Key, T >::unite ( const QMultiMap< Key, T > & other)
inline

Definition at line 1538 of file qmap.h.

References copy(), d, QMultiMap< Key, T >::detach(), and other().

Referenced by QDBusMetaObject::createMetaObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unite() [2/2]

template<class Key , class T >
QMultiMap & QMultiMap< Key, T >::unite ( QMultiMap< Key, T > && other)
inline

Definition at line 1556 of file qmap.h.

◆ upperBound() [1/2]

template<class Key , class T >
iterator QMultiMap< Key, T >::upperBound ( const Key & key)
inline

Definition at line 1438 of file qmap.h.

References QMultiMap< Key, T >::QMultiMap(), copy(), d, QMultiMap< Key, T >::detach(), and this.

Referenced by QGraphicsScenePrivate::filterEvent(), and QGraphicsScenePrivate::removeSceneEventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upperBound() [2/2]

template<class Key , class T >
const_iterator QMultiMap< Key, T >::upperBound ( const Key & key) const
inline

Definition at line 1445 of file qmap.h.

References d.

◆ value()

template<class Key , class T >
T QMultiMap< Key, T >::value ( const Key & key,
const T & defaultValue = T() ) const
inline

Definition at line 1066 of file qmap.h.

References d, and i.

Referenced by QFontCache::insertEngine().

+ Here is the caller graph for this function:

◆ values() [1/2]

template<class Key , class T >
QList< T > QMultiMap< Key, T >::values ( ) const
inline

Definition at line 1105 of file qmap.h.

References d.

Referenced by QQmlJS::Dom::QmlDirectory::addQmlFilePath(), QTlsPrivate::X509CertificateBase::issuerInfo(), QQmlJS::Dom::FieldFilter::operator()(), QTlsPrivate::X509CertificateBase::subjectInfo(), QGestureManager::unregisterGestureRecognizer(), and QWaylandXdgShellPrivate::xdg_wm_base_destroy().

+ Here is the caller graph for this function:

◆ values() [2/2]

template<class Key , class T >
QList< T > QMultiMap< Key, T >::values ( const Key & key) const
inline

Definition at line 1112 of file qmap.h.

References QMultiMap< Key, T >::equal_range().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

template<class Key , class T >
template<typename AKey = Key, typename AT = T>
QTypeTraits::compare_eq_result_container< QMultiMap, AKey, AT > operator!= ( const QMultiMap< Key, T > & lhs,
const QMultiMap< Key, T > & rhs )
friend

Definition at line 928 of file qmap.h.

◆ operator==

template<class Key , class T >
template<typename AKey = Key, typename AT = T>
QTypeTraits::compare_eq_result_container< QMultiMap, AKey, AT > operator== ( const QMultiMap< Key, T > & lhs,
const QMultiMap< Key, T > & rhs )
friend

Definition at line 917 of file qmap.h.


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