Scroll to navigation

QValueListConstIterator(3qt) QValueListConstIterator(3qt)

NAME

QValueListConstIterator - Const iterator for QValueList

SYNOPSIS

All the functions in this class are reentrant when Qt is built with thread support.</p>

#include <qvaluelist.h>

Public Members


typedef T value_type
typedef const T * pointer
typedef const T & reference
QValueListConstIterator ()
QValueListConstIterator ( const QValueListConstIterator<T> & it )
QValueListConstIterator ( const QValueListIterator<T> & it )
bool operator== ( const QValueListConstIterator<T> & it ) const
bool operator!= ( const QValueListConstIterator<T> & it ) const
const T & operator* () const
QValueListConstIterator<T> & operator++ ()
QValueListConstIterator<T> operator++ ( int )
QValueListConstIterator<T> & operator-- ()
QValueListConstIterator<T> operator-- ( int )

DESCRIPTION

The QValueListConstIterator class provides a const iterator for QValueList.

In contrast to QValueListIterator, this class is used to iterate over a const list. It does not allow modification of the values of the list since that would break const semantics.

You can create the appropriate const iterator type by using the const_iterator typedef provided by QValueList.

For more information on QValueList iterators, see QValueListIterator.

See also QValueListIterator, QValueList, Qt Template Library Classes, and Non-GUI Classes.

Member Type Documentation

QValueListConstIterator::pointer

Pointer to value_type.

QValueListConstIterator::reference

Reference to value_type.

QValueListConstIterator::value_type

The type of value.

MEMBER FUNCTION DOCUMENTATION

QValueListConstIterator::QValueListConstIterator ()

Creates un uninitialized iterator.

QValueListConstIterator::QValueListConstIterator ( const QValueListConstIterator<T> & it )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Constructs a copy of the iterator it.

QValueListConstIterator::QValueListConstIterator ( const QValueListIterator<T> & it )

Constructs a copy of the iterator it.

bool QValueListConstIterator::operator!= ( const QValueListConstIterator<T> & it ) const

Compares this iterator with it and returns TRUE if they point to different items; otherwise returns FALSE.

const T & QValueListConstIterator::operator* () const

Asterisk operator. Returns a reference to the current iterator item.

QValueListConstIterator<T> & QValueListConstIterator::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 list. Incrementing the iterator returned by end() causes undefined results.

QValueListConstIterator<T> QValueListConstIterator::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 list. Incrementing the iterator returned by end() causes undefined results.

QValueListConstIterator<T> & QValueListConstIterator::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 list. Decrementing the iterator returned by begin() causes undefined results.

QValueListConstIterator<T> QValueListConstIterator::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 list. Decrementing the iterator returned by begin() causes undefined results.

bool QValueListConstIterator::operator== ( const QValueListConstIterator<T> & it ) const

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

SEE ALSO

http://doc.trolltech.com/qvaluelistconstiterator.html http://www.trolltech.com/faq/tech.html

COPYRIGHT

Copyright 1992-2007 Trolltech ASA, 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 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 (qvaluelistconstiterator.3qt) and the Qt version (3.3.8).

2 February 2007 Trolltech AS