WTF
WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > Class Template Reference
#include <HashMap.h>
Detailed Description
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
class WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >
Definition at line 35 of file HashMap.h.
Public Types | |
| typedef KeyTraits::TraitType | KeyType |
| typedef MappedTraits::TraitType | MappedType |
| typedef ValueTraits::TraitType | ValueType |
| typedef HashTableIteratorAdapter < HashTableType, ValueType > | iterator |
| typedef HashTableConstIteratorAdapter < HashTableType, ValueType > | const_iterator |
Public Member Functions | |
| HashMap () | |
| HashMap (const HashMap &) | |
| HashMap & | operator= (const HashMap &) |
| ~HashMap () | |
| void | swap (HashMap &) |
| int | size () const |
| int | capacity () const |
| bool | isEmpty () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | find (const KeyType &) |
| const_iterator | find (const KeyType &) const |
| bool | contains (const KeyType &) const |
| MappedType | get (const KeyType &) const |
| pair< iterator, bool > | set (const KeyType &, const MappedType &) |
| pair< iterator, bool > | add (const KeyType &, const MappedType &) |
| void | remove (const KeyType &) |
| void | remove (iterator it) |
| void | clear () |
Member Typedef Documentation
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 |
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 |
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 |
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
| typedef HashTableIteratorAdapter<HashTableType, ValueType> WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::iterator |
template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash, typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
| typedef HashTableConstIteratorAdapter<HashTableType, ValueType> WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::const_iterator |
Constructor & Destructor Documentation
template<typename T, typename U, typename V, typename W, typename X>
| WTF::HashMap< T, U, V, W, X >::HashMap | ( | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| WTF::HashMap< T, U, V, W, X >::HashMap | ( | const HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > & | other | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| WTF::HashMap< T, U, V, W, X >::~HashMap | ( | ) | [inline] |
Member Function Documentation
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X > & WTF::HashMap< T, U, V, W, X >::operator= | ( | const HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > & | other | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| void WTF::HashMap< T, U, V, W, X >::swap | ( | HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > & | other | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| int WTF::HashMap< T, U, V, W, X >::size | ( | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| int WTF::HashMap< T, U, V, W, X >::capacity | ( | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| bool WTF::HashMap< T, U, V, W, X >::isEmpty | ( | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X >::iterator WTF::HashMap< T, U, V, W, X >::begin | ( | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X >::iterator WTF::HashMap< T, U, V, W, X >::end | ( | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X >::const_iterator WTF::HashMap< T, U, V, W, X >::begin | ( | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X >::const_iterator WTF::HashMap< T, U, V, W, X >::end | ( | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X >::iterator WTF::HashMap< T, U, V, W, X >::find | ( | const KeyType & | key | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| HashMap< T, U, V, W, X >::const_iterator WTF::HashMap< T, U, V, W, X >::find | ( | const KeyType & | key | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| bool WTF::HashMap< T, U, V, W, X >::contains | ( | const KeyType & | key | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename MappedTraits>
| HashMap< T, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::get | ( | const KeyType & | key | ) | const [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| pair< typename HashMap< T, U, V, W, X >::iterator, bool > WTF::HashMap< T, U, V, W, X >::set | ( | const KeyType & | key, | |
| const MappedType & | mapped | |||
| ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| pair< typename HashMap< T, U, V, W, X >::iterator, bool > WTF::HashMap< T, U, V, W, X >::add | ( | const KeyType & | key, | |
| const MappedType & | mapped | |||
| ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| void WTF::HashMap< T, U, V, W, X >::remove | ( | const KeyType & | key | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| void WTF::HashMap< T, U, V, W, X >::remove | ( | iterator | it | ) | [inline] |
template<typename T, typename U, typename V, typename W, typename X>
| void WTF::HashMap< T, U, V, W, X >::clear | ( | ) | [inline] |
The documentation for this class was generated from the following file:
KDE 4.0 API Reference