QMap

#include <QtCore/QMap>

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


Overview

Inheritance

Public Attributes Index

Public Functions Index

QMap ()
QMap (const QMap< Key, T > &other)
QMap (const typename std::map< Key, T > &other)
~QMap ()
iteratorbegin ()
const_iteratorbegin () 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 QMap< 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
iteratorlowerBound (const Key &key)
const_iteratorlowerBound (const Key &key) const
booloperator!= (const QMap< Key, T > &other) const
QMap< Key, T > &operator= (const QMap< Key, T > &other)
booloperator== (const QMap< Key, T > &other) const
T &operator[] (const Key &key)
const Toperator[] (const Key &key) const
intremove (const Key &key)
voidsetInsertInOrder (bool ordered)
voidsetSharable (bool sharable)
intsize () const
voidswap (QMap< Key, T > &other)
Ttake (const Key &key)
std::map< Key, T >toStdMap () const
QList< Key >uniqueKeys () const
QMap< Key, T > &unite (const QMap< Key, T > &other)
iteratorupperBound (const Key &key)
const_iteratorupperBound (const Key &key) const
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

Public Functions

QMap ()

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

QMap (
  • const typename std::map< Key, T > &other)

~QMap ()

Destructor.

iterator begin ()

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

iterator lowerBound (
  • const Key &key)

const_iterator lowerBound (
  • const Key &key)

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

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

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

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

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

int remove (
  • const Key &key)

void setInsertInOrder (
  • boolordered)

void setSharable (
  • boolsharable)

int size ()

void swap (
  • QMap< Key, T > &other)

T take (
  • const Key &key)

std::map< Key, T > toStdMap ()

QList< Key > uniqueKeys ()

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

iterator upperBound (
  • const Key &key)

const_iterator upperBound (
  • const Key &key)

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