QHash

#include <QtCore/QHash>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QHash


Overview

Inheritance

Public Attributes Index

QHashData *d
QHashNode< Key, T > *e

Public Functions Index

QHash ()
QHash (const QHash< Key, T > &other)
~QHash ()
iteratorbegin ()
const_iteratorbegin () const
intcapacity () const
voidclear ()
const_iteratorconstBegin () const
const_iteratorconstEnd () const
const_iteratorconstFind (const Key &key) const
boolcontains (const Key &key) const
intcount (const Key &key) const
intcount () const
voiddetach ()
boolempty () const
iteratorend ()
const_iteratorend () const
iteratorerase (iterator it)
iteratorfind (const Key &key)
const_iteratorfind (const Key &key) const
iteratorinsert (const Key &key, const T &value)
iteratorinsertMulti (const Key &key, const T &value)
boolisDetached () const
boolisEmpty () const
boolisSharedWith (const QHash< Key, T > &other) const
const Keykey (const T &value) const
const Keykey (const T &value, const Key &defaultKey) const
QList< Key >keys () const
QList< Key >keys (const T &value) const
booloperator!= (const QHash< Key, T > &other) const
QHash< Key, T > &operator= (const QHash< Key, T > &other)
booloperator== (const QHash< Key, T > &other) const
T &operator[] (const Key &key)
const Toperator[] (const Key &key) const
intremove (const Key &key)
voidreserve (int size)
voidsetSharable (bool sharable)
intsize () const
voidsqueeze ()
voidswap (QHash< Key, T > &other)
Ttake (const Key &key)
QList< Key >uniqueKeys () const
QHash< Key, T > &unite (const QHash< Key, T > &other)
const Tvalue (const Key &key) const
const Tvalue (const Key &key, const T &defaultValue) const
QList< T >values () const
QList< T >values (const Key &key) const

Public Types

typedef const_iterator ConstIterator

typedef qptrdiff difference_type

typedef iterator Iterator

typedef Key key_type

typedef T mapped_type

typedef int size_type

Public Attributes

QHashData * d ()

QHashNode< Key, T > * e ()

Public Functions

QHash ()

QHash (
  • const QHash< Key, T > &other)

~QHash ()

Destructor.

iterator begin ()

int capacity ()

void clear ()

const_iterator constBegin ()

const_iterator constEnd ()

const_iterator constFind (
  • const Key &key)

bool contains (
  • const Key &key)

int count (
  • const Key &key)

int count ()

void detach ()

bool empty ()

iterator end ()

iterator erase (

iterator find (
  • const Key &key)

const_iterator find (
  • const Key &key)

iterator insert (
  • const Key &key,
  • const T &value )

iterator insertMulti (
  • const Key &key,
  • const T &value )

bool isDetached ()

bool isEmpty ()

bool isSharedWith (
  • const QHash< Key, T > &other)

const Key key (
  • const T &value)

const Key key (
  • const T &value,
  • const Key &defaultKey )

QList< Key > keys ()

QList< Key > keys (
  • const T &value)

bool operator!= (
  • const QHash< Key, T > &other)

QHash< Key, T > & operator= (
  • const QHash< Key, T > &other)

bool operator== (
  • const QHash< Key, T > &other)

T & operator[] (
  • const Key &key)

const T operator[] (
  • const Key &key)

int remove (
  • const Key &key)

void reserve (
  • intsize)

void setSharable (
  • boolsharable)

int size ()

void squeeze ()

void swap (

T take (
  • const Key &key)

QList< Key > uniqueKeys ()

QHash< Key, T > & unite (
  • const QHash< Key, T > &other)

const T value (
  • const Key &key)

const T value (
  • const Key &key,
  • const T &defaultValue )

QList< T > values ()

QList< T > values (
  • const Key &key)

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus