QMapConstIterator(3qt)

NAME
QMapConstIterator - Iterator for

#include <qmap.h>

  Public Members
QMapConstIterator ()
QMapConstIterator ( QMapNode<K, T> * p )
QMapConstIterator ( const QMapConstIterator<K,T> & it )
QMapConstIterator ( const QMapIterator<K,T> & it )
bool operator== ( const QMapConstIterator<K,T> & it ) const
bool operator!= ( const QMapConstIterator<K,T> & it ) const
const T& operator* () const
const K& key () const
const T& data () const

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 and QMapIterator.

MEMBER FUNCTION DOCUMENTATION

QMapConstIterator::QMapConstIterator ()
Constructs an uninitialized iterator.

QMapConstIterator::QMapConstIterator ( QMapNode<K, T> * p )
Constructs an iterator starting at node p.

QMapConstIterator::QMapConstIterator ( const QMapIterator<K,T> & it )
Constructs a copy of the iterator.

QMapConstIterator::QMapConstIterator ( const QMapConstIterator<K,T> & it )
Constructs a copy of the iterator.

const T& QMapConstIterator::data () const
Returns a const reference to the data of the current item.

const K& QMapConstIterator::key () const
Returns a const reference to the current key.

bool QMapConstIterator::operator!= ( const QMapConstIterator<K,T> & it ) const
Compares both iterators and returns TRUE if they point to different items.

const T& QMapConstIterator::operator* () const
Asterix operator. Returns a const reference to the current item. The same as data().

bool QMapConstIterator::operator== ( const QMapConstIterator<K,T> & it ) const
Compares both iterators and returns TRUE if they point to the same item.

SEE ALSO
http://doc.trolltech.com/qmapconstiterator.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qmapconstiterator.3qt) and the Qt version (2.3.7).