• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

WTF

WTF::HashMap

WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > Class Template Reference

#include <HashMap.h>

List of all members.


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.


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 &)

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

Definition at line 52 of file HashMap.h.

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

Definition at line 51 of file HashMap.h.

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

Definition at line 40 of file HashMap.h.

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

Definition at line 41 of file HashMap.h.

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

Definition at line 42 of file HashMap.h.


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]

Definition at line 199 of file HashMap.h.

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]

Definition at line 148 of file HashMap.h.

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]

Definition at line 136 of file HashMap.h.

template<typename T, typename U, typename V, typename W, typename X>
int WTF::HashMap< T, U, V, W, X >::capacity (  )  const [inline]

Definition at line 124 of file HashMap.h.

template<typename T, typename U, typename V, typename W, typename X>
void WTF::HashMap< T, U, V, W, X >::clear (  )  [inline]

Definition at line 230 of file HashMap.h.

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]

Definition at line 172 of file HashMap.h.

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]

Definition at line 154 of file HashMap.h.

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]

Definition at line 142 of file HashMap.h.

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]

Definition at line 166 of file HashMap.h.

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]

Definition at line 160 of file HashMap.h.

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]

Definition at line 206 of file HashMap.h.

template<typename T, typename U, typename V, typename W, typename X>
bool WTF::HashMap< T, U, V, W, X >::isEmpty (  )  const [inline]

Definition at line 130 of file HashMap.h.

template<typename T, typename U, typename V, typename W, typename X>
void WTF::HashMap< T, U, V, W, X >::remove ( iterator  it  )  [inline]

Definition at line 215 of file HashMap.h.

template<typename T, typename U, typename V, typename W, typename X>
void WTF::HashMap< T, U, V, W, X >::remove ( const KeyType &  key  )  [inline]

Definition at line 224 of file HashMap.h.

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]

Definition at line 187 of file HashMap.h.

template<typename T, typename U, typename V, typename W, typename X>
int WTF::HashMap< T, U, V, W, X >::size (  )  const [inline]

Definition at line 118 of file HashMap.h.

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]

Definition at line 112 of file HashMap.h.

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]

Definition at line 237 of file HashMap.h.


The documentation for this class was generated from the following files:
  • HashMap.h
  • RefPtrHashMap.h

WTF

Skip menu "WTF"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal