Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > Q

qmapconstiterator

man page of qmapconstiterator

qmapconstiterator: Iterator for QMap

NAME
QMapConstIterator - Iterator for QMap
SYNOPSIS
#include <qmap.h> Public Members typedef std::bidirectional_iterator_tag iterator_category typedef T value_type typedef const T * pointer typedef const T & reference 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 QMapConstIterator<K, T> & operator++ () QMapConstIterator<K, T> operator++ ( int ) QMapConstIterator<K, T> & operator-- () QMapConstIterator<K, T> operator-- ( int )

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 you to modify the values of the map because this would break the const semantics. For more information on QMap iterators, see QMapIterator and the QMap example. See also QMap, QMapIterator, Qt Template Library Classes, and Non-GUI Classes. Member Type Documentation

QMAPCONSTITERATOR::ITERATOR_CATEGORY

The type of iterator category, std::bidirectional_iterator_tag.

QMAPCONSTITERATOR::POINTER

Const pointer to value_type.

QMAPCONSTITERATOR::REFERENCE

Const reference to value_type.
QMAPCONSTITERATOR::VALUE_TYPE
The type of const value.
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 QMAPCONSTITERATOR<K, T> & IT )

Constructs a copy of the iterator, it.

QMAPCONSTITERATOR::QMAPCONSTITERATOR ( CONST QMAPITERATOR<K, T> & IT )

Constructs a copy of the iterator, it.
CONST T & QMAPCONSTITERATOR::DATA () CONST
Returns a const reference to the current item's data.
CONST K & QMAPCONSTITERATOR::KEY () CONST
Returns a const reference to the current item's key.

BOOL QMAPCONSTITERATOR::OPERATOR!= ( CONST QMAPCONSTITERATOR<K, T> & IT )

const Compares the iterator to the it iterator and returns FALSE if they point to the same item; otherwise returns TRUE.

CONST T & QMAPCONSTITERATOR::OPERATOR* () CONST

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

QMAPCONSTITERATOR<K, T> & QMAPCONSTITERATOR::OPERATOR++ ()

Prefix ++ makes the succeeding item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the end of the map. Incrementing the iterator returned by end() causes undefined results.

QMAPCONSTITERATOR<K, T> QMAPCONSTITERATOR::OPERATOR++ ( INT )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Postfix ++ makes the succeeding item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the end of the map. Incrementing the iterator returned by end() causes undefined results.
QMAPCONSTITERATOR<K, T> & QMAPCONSTITERATOR::OPERATOR-- ()
Prefix -- makes the previous item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the beginning of the map. Decrementing the iterator returned by begin() causes undefined results.
QMAPCONSTITERATOR<K, T> QMAPCONSTITERATOR::OPERATOR-- ( INT )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Postfix -- makes the previous item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the beginning of the map. Decrementing the iterator returned by begin() causes undefined results.

BOOL QMAPCONSTITERATOR::OPERATOR== ( CONST QMAPCONSTITERATOR<K, T> & IT )

const Compares the iterator to the it iterator and returns TRUE if they point to the same item; otherwise returns FALSE.

SEE ALSO

//doc.trolltech.com/qmapconstiterator.html //www.trolltech.com/faq/tech.html

COPYRIGHT

Copyright 1992-2007 Trolltech ASA, //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 //doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in 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 (3.3.8). QMAPCONSTITERATOR(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 27.74ms.

roboter.name | get-ip.de | wippsaege.name