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

WTF

  • WTF
  • HashMap
Public Types | Public Member Functions | List of all members
WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > Class Template Reference

#include <HashMap.h>

Inheritance diagram for WTF::HashMap< KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >:
Inheritance graph
[legend]

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

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 >::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 >
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 >
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 >::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 >::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 >::find ( const KeyType &  key)
inline

Definition at line 160 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 MappedTraits >
HashMap< RefPtr< T >, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::get ( const KeyType &  key) const

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 ( const KeyType &  key)
inline

Definition at line 224 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 >
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 
)

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)

Definition at line 237 of file HashMap.h.


The documentation for this class was generated from the following files:
  • HashMap.h
  • RefPtrHashMap.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

WTF

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal