WTF
WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > Class Template Reference
#include <HashMap.h>
Public Types | |
typedef HashTableConstIteratorAdapter < HashTableType, ValueType > | const_iterator |
typedef HashTableIteratorAdapter < HashTableType, ValueType > | iterator |
typedef KeyTraits::TraitType | KeyType |
typedef MappedTraits::TraitType | MappedType |
typedef ValueTraits::TraitType | ValueType |
Public Member Functions | |
pair< iterator, bool > | add (const KeyType &, const MappedType &) |
const_iterator | begin () const |
iterator | begin () |
int | capacity () const |
void | clear () |
bool | contains (const KeyType &) const |
const_iterator | end () const |
iterator | end () |
const_iterator | find (const KeyType &) const |
iterator | find (const KeyType &) |
MappedType | get (const KeyType &) const |
bool | isEmpty () const |
void | remove (iterator) |
void | remove (const KeyType &) |
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 WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >
Definition at line 33 of file HashMap.h.
Member Typedef Documentation
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 |
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 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 |
Member Function Documentation
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 | |||
) | [inline] |
template<typename T , typename U , typename V , typename W , typename X >
HashMap< RefPtr< 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< RefPtr< 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 >
int WTF::HashMap< T, U, V, W, X >::capacity | ( | ) | const [inline] |
template<typename T , typename U , typename V , typename W , typename X >
void WTF::HashMap< T, U, V, W, X >::clear | ( | ) | [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 X >
HashMap< RefPtr< 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< RefPtr< 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< RefPtr< 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 >
HashMap< RefPtr< 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 MappedTraits >
HashMap< RefPtr< 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 >
bool WTF::HashMap< T, U, V, W, X >::isEmpty | ( | ) | const [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 >::remove | ( | const KeyType & | key | ) | [inline] |
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 | |||
) | [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 >
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 MappedTraits >
HashMap< RefPtr< T >, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::take | ( | const KeyType & | key | ) | [inline] |
The documentation for this class was generated from the following files: