Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

TQValueListConstIterator Class Reference

The TQValueListConstIterator class provides a const iterator for TQValueList. More...

All the functions in this class are reentrant when TQt is built with thread support.

#include <ntqvaluelist.h>

List of all member functions.

Public Members


Detailed Description

The TQValueListConstIterator class provides a const iterator for TQValueList.

In contrast to TQValueListIterator, 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 TQValueList.

For more information on TQValueList iterators, see TQValueListIterator.

See also TQValueListIterator, TQValueList, TQt Template Library Classes, and Non-GUI Classes.


Member Type Documentation

TQValueListConstIterator::pointer

Pointer to value_type.

TQValueListConstIterator::reference

Reference to value_type.

TQValueListConstIterator::value_type

The type of value.

Member Function Documentation

TQValueListConstIterator::TQValueListConstIterator ()

Creates un uninitialized iterator.

TQValueListConstIterator::TQValueListConstIterator ( const TQValueListConstIterator<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.

TQValueListConstIterator::TQValueListConstIterator ( const TQValueListIterator<T> & it )

Constructs a copy of the iterator it.

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

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

const T & TQValueListConstIterator::operator* () const

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

TQValueListConstIterator<T> & TQValueListConstIterator::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.

TQValueListConstIterator<T> TQValueListConstIterator::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.

TQValueListConstIterator<T> & TQValueListConstIterator::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.

TQValueListConstIterator<T> TQValueListConstIterator::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 TQValueListConstIterator::operator== ( const TQValueListConstIterator<T> & it ) const

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


This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.


Copyright © 2007 TrolltechTrademarks
TQt 3.3.8