Qt logo

QMapConstIterator Class Reference


The QMapConstIterator class provides an iterator for QMap. More...

#include <qmap.h>

List of all member functions.

Public Members


Detailed Description

The QMapConstIterator class provides an iterator for QMap.

In contrast to QMapIterator this class is used to iterate over a const map. It does not allow to modify the values of the map since this would break the const semantics.

For more informations on QMap iterators see QMapIterator.

See also: QMap, \sa and QMapIterator.


Member Function Documentation

QMapConstIterator::QMapConstIterator()

Creates an uninitialized iterator.

QMapConstIterator::QMapConstIterator(constQMapIterator<K,T>&it)

Constructs a copy of the iterator.

QMapConstIterator::QMapConstIterator(constQMapConstIterator<K,T>&it)

Constructs a copy of the iterator.

constT&QMapConstIterator::data()const

Returns a const reference to the data of the current item.

constK&QMapConstIterator::key()const

Returns a const reference to the current key.

boolQMapConstIterator::operator!=(constQMapConstIterator<K,T>&it)const

Compares both iterators and returns TRUE if they point to different items.

constT&QMapConstIterator::operator*()const

Asterix operator. Returns a const reference to the current item. The same as data().

boolQMapConstIterator::operator==(constQMapConstIterator<K,T>&it)const

Compares both iterators and returns TRUE if they point to the same item.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.


Copyright 1999 Troll TechTrademarks
Qt version 2.0.2