• Skip to content
  • Skip to link menu
KDE 4.0 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 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

Definition at line 42 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 43 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 44 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 63 of file HashMap.h.

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 64 of file HashMap.h.


Constructor & Destructor Documentation

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

Definition at line 174 of file HashMap.h.

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]

Definition at line 179 of file HashMap.h.

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

Definition at line 200 of file HashMap.h.


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]

Definition at line 186 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 194 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 206 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 212 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 218 of file HashMap.h.

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]

Definition at line 224 of file HashMap.h.

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]

Definition at line 230 of file HashMap.h.

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]

Definition at line 236 of file HashMap.h.

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]

Definition at line 242 of file HashMap.h.

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]

Definition at line 248 of file HashMap.h.

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]

Definition at line 254 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 260 of file HashMap.h.

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]

Definition at line 294 of file HashMap.h.

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]

Definition at line 276 of file HashMap.h.

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]

Definition at line 287 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 312 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 303 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 318 of file HashMap.h.


The documentation for this class was generated from the following file:
  • HashMap.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
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • 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