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

WTF

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

#include <RefPtrHashMap.h>

Public Types

typedef KeyTraits::TraitType KeyType
typedef KeyTraits::TraitType KeyType
typedef MappedTraits::TraitType MappedType
typedef MappedTraits::TraitType MappedType
typedef T * RawKeyType
typedef ValueTraits::TraitType ValueType
typedef ValueTraits::TraitType ValueType

Public Member Functions

pair< iterator, bool > add (const KeyType &, const MappedType &)
pair< iterator, bool > add (const KeyType &, const MappedType &)
pair< iterator, bool > add (RawKeyType, const MappedType &)
iterator begin ()
iterator begin ()
const_iterator begin () const
const_iterator begin () const
int capacity () const
int capacity () const
void clear ()
void clear ()
bool contains (const KeyType &) const
bool contains (const KeyType &) const
bool contains (RawKeyType) const
iterator end ()
iterator end ()
const_iterator end () const
const_iterator end () const
iterator find (const KeyType &)
iterator find (const KeyType &)
const_iterator find (const KeyType &) const
const_iterator find (const KeyType &) const
iterator find (RawKeyType)
const_iterator find (RawKeyType) const
MappedType get (const KeyType &) const
MappedType get (const KeyType &) const
MappedType get (RawKeyType) const
MappedType inlineGet (RawKeyType) const
bool isEmpty () const
bool isEmpty () const
void remove (const KeyType &)
void remove (const KeyType &)
void remove (iterator)
void remove (iterator)
void remove (RawKeyType)
pair< iterator, bool > set (const KeyType &, const MappedType &)
pair< iterator, bool > set (const KeyType &, const MappedType &)
pair< iterator, bool > set (RawKeyType, const MappedType &)
int size () const
int size () const
void swap (HashMap &)
void swap (HashMap &)
MappedType take (const KeyType &)
MappedType take (const KeyType &)
MappedType take (RawKeyType)

Detailed Description

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
class WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >

Definition at line 46 of file RefPtrHashMap.h.

Member Typedef Documentation

◆ KeyType [1/2]

typedef KeyTraits::TraitType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::KeyType

Definition at line 40 of file HashMap.h.

◆ KeyType [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
typedef KeyTraits::TraitType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::KeyType

Definition at line 53 of file RefPtrHashMap.h.

◆ MappedType [1/2]

typedef MappedTraits::TraitType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::MappedType

Definition at line 41 of file HashMap.h.

◆ MappedType [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
typedef MappedTraits::TraitType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::MappedType

Definition at line 55 of file RefPtrHashMap.h.

◆ RawKeyType

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
typedef T* WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::RawKeyType

Definition at line 54 of file RefPtrHashMap.h.

◆ ValueType [1/2]

typedef ValueTraits::TraitType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::ValueType

Definition at line 42 of file HashMap.h.

◆ ValueType [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
typedef ValueTraits::TraitType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::ValueType

Definition at line 56 of file RefPtrHashMap.h.

Member Function Documentation

◆ add() [1/3]

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

◆ add() [2/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
pair< iterator, bool > WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::add ( const KeyType & ,
const MappedType &  )

◆ add() [3/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
pair< iterator, bool > WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::add ( RawKeyType ,
const MappedType &  )

◆ begin() [1/4]

HashMap< RefPtr< T >, U, V, W, X >::iterator WTF::HashMap< T, U, V, W, X >::begin ( )
inline

Definition at line 61 of file HashMap.h.

◆ begin() [2/4]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::begin ( )

◆ begin() [3/4]

HashMap< RefPtr< T >, U, V, W, X >::const_iterator WTF::HashMap< T, U, V, W, X >::begin ( ) const
inline

Definition at line 63 of file HashMap.h.

◆ begin() [4/4]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
const_iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::begin ( ) const

◆ capacity() [1/2]

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

Definition at line 57 of file HashMap.h.

◆ capacity() [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
int WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::capacity ( ) const

◆ clear() [1/2]

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

Definition at line 83 of file HashMap.h.

◆ clear() [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
void WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::clear ( )

◆ contains() [1/3]

bool WTF::HashMap< T, U, V, W, X >::contains ( const KeyType & key) const
inline

Definition at line 68 of file HashMap.h.

◆ contains() [2/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
bool WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::contains ( const KeyType & ) const

◆ contains() [3/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
bool WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::contains ( RawKeyType ) const

◆ end() [1/4]

HashMap< RefPtr< T >, U, V, W, X >::iterator WTF::HashMap< T, U, V, W, X >::end ( )
inline

Definition at line 62 of file HashMap.h.

◆ end() [2/4]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::end ( )

◆ end() [3/4]

HashMap< RefPtr< T >, U, V, W, X >::const_iterator WTF::HashMap< T, U, V, W, X >::end ( ) const
inline

Definition at line 64 of file HashMap.h.

◆ end() [4/4]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
const_iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::end ( ) const

◆ find() [1/6]

HashMap< RefPtr< T >, U, V, W, X >::iterator WTF::HashMap< T, U, V, W, X >::find ( const KeyType & key)
inline

Definition at line 66 of file HashMap.h.

◆ find() [2/6]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::find ( const KeyType & )

◆ find() [3/6]

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

◆ find() [4/6]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
const_iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::find ( const KeyType & ) const

◆ find() [5/6]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::find ( RawKeyType )

◆ find() [6/6]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
const_iterator WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::find ( RawKeyType ) const

◆ get() [1/3]

HashMap< RefPtr< T >, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::get ( const KeyType & key) const

Definition at line 69 of file HashMap.h.

◆ get() [2/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
MappedType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::get ( const KeyType & ) const

◆ get() [3/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
MappedType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::get ( RawKeyType ) const

◆ inlineGet()

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
MappedType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::inlineGet ( RawKeyType ) const

◆ isEmpty() [1/2]

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

Definition at line 58 of file HashMap.h.

◆ isEmpty() [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
bool WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::isEmpty ( ) const

◆ remove() [1/5]

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

Definition at line 81 of file HashMap.h.

◆ remove() [2/5]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
void WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::remove ( const KeyType & )

◆ remove() [3/5]

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

Definition at line 82 of file HashMap.h.

◆ remove() [4/5]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
void WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::remove ( iterator )

◆ remove() [5/5]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
void WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::remove ( RawKeyType )

◆ set() [1/3]

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

◆ set() [2/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
pair< iterator, bool > WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::set ( const KeyType & ,
const MappedType &  )

◆ set() [3/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
pair< iterator, bool > WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::set ( RawKeyType ,
const MappedType &  )

◆ size() [1/2]

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

Definition at line 56 of file HashMap.h.

◆ size() [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
int WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::size ( ) const

◆ swap() [1/2]

void WTF::HashMap< T, U, V, W, X >::swap ( HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > & other)
inline

Definition at line 54 of file HashMap.h.

◆ swap() [2/2]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
void WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::swap ( HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg > & )

◆ take() [1/3]

HashMap< RefPtr< T >, U, V, W, MappedTraits >::MappedType WTF::HashMap< T, U, V, W, MappedTraits >::take ( const KeyType & key)

Definition at line 85 of file HashMap.h.

◆ take() [2/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
MappedType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::take ( const KeyType & )

◆ take() [3/3]

template<typename T, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
MappedType WTF::HashMap< RefPtr< T >, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg >::take ( RawKeyType )

The documentation for this class was generated from the following files:
  • RefPtrHashMap.h
  • HashMap.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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