QValueListConstIterator Class Reference
The QValueListConstIterator class provides a const iterator
for QValueList.
More...
#include <qvaluelist.h>
List of all member functions.
Public Members
typedef QValueListNode<T> * NodePtr
typedef std::bidirectional_iterator_tag iterator_category
typedef size_t size_type
typedef ptrdiff_t difference_type
QValueListConstIterator ()
QValueListConstIterator ( NodePtr p )
bool operator== ( const QValueListConstIterator<T> & it ) const
bool operator!= ( const QValueListConstIterator<T> & it ) const
QValueListConstIterator<T> & operator-- ()
QValueListConstIterator<T> operator-- ( int )
Detailed 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
this 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 and QValueList.
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 ( 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.
const T & QValueListConstIterator::operator* () const
Asterisk operator. Returns a reference to the current iterator item.
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 as 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 as
returned by end() causes undefined results.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta2
|