WTF
HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > Class Template Reference
#include <HashMap.h>
Public Types | |
| typedef KeyTraits::TraitType | KeyType |
| typedef MappedTraits::TraitType | MappedType |
| typedef ValueTraits::TraitType | ValueType |
Public Member Functions | |
| pair< iterator, bool > | add (const KeyType &, const MappedType &) |
| iterator | begin () |
| const_iterator | begin () const |
| int | capacity () const |
| void | clear () |
| bool | contains (const KeyType &) const |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (const KeyType &) |
| const_iterator | find (const KeyType &) const |
| MappedType | get (const KeyType &) const |
| bool | isEmpty () const |
| void | remove (const KeyType &) |
| void | remove (iterator) |
| pair< iterator, bool > | set (const KeyType &, const MappedType &) |
| int | size () const |
| void | swap (HashMap &) |
| MappedType | take (const KeyType &) |
Detailed Description
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
class HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >
class HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >
Member Typedef Documentation
◆ KeyType
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
| typedef KeyTraits::TraitType WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::KeyType |
◆ MappedType
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
| typedef MappedTraits::TraitType WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::MappedType |
◆ ValueType
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
| typedef ValueTraits::TraitType WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::ValueType |
Member Function Documentation
◆ add()
template<typename T, typename U, typename V, typename W, typename X>
| pair< typename HashMap< RefPtr< T >, U, V, W, X >::iterator, bool > WTF::HashMap< T, U, V, W, X >::add | ( | const KeyType & | key, |
| const MappedType & | mapped ) |
◆ begin() [1/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ begin() [2/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ capacity()
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ clear()
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ contains()
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ end() [1/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ end() [2/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ find() [1/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ find() [2/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ get()
template<typename T, typename U, typename V, typename W, typename MappedTraits>
| HashMap< RefPtr< T >, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::get | ( | const KeyType & | key | ) | const |
◆ isEmpty()
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ remove() [1/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ remove() [2/2]
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ set()
template<typename T, typename U, typename V, typename W, typename X>
| pair< typename HashMap< RefPtr< T >, U, V, W, X >::iterator, bool > WTF::HashMap< T, U, V, W, X >::set | ( | const KeyType & | key, |
| const MappedType & | mapped ) |
◆ size()
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ swap()
template<typename T, typename U, typename V, typename W, typename X>
|
inline |
◆ take()
template<typename T, typename U, typename V, typename W, typename MappedTraits>
| HashMap< RefPtr< T >, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::take | ( | const KeyType & | key | ) |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.16.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.16.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.