FX::QSortedListIterator< type > Class Template Reference
[Qt Template Library]

#include <qsortedlist.h>

Inheritance diagram for FX::QSortedListIterator< type >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<class type>
class FX::QSortedListIterator< type >

Provides an iterator for a QSortedList.

This iterator works identically to Qt's ones. See their documentation.

See also:
QSortedList

QListIterator


Public Member Functions

 QSortedListIterator (const QSortedList< type > &l)
QSortedListIterator< type > & makeDead ()
std::list< type * >::iterator & int_getIterator ()
bool operator== (const QPtrListIterator &o) const
bool operator!= (const QPtrListIterator &o) const
bool operator< (const QPtrListIterator &o) const
bool operator> (const QPtrListIterator &o) const
uint count () const
bool isEmpty () const
bool atFirst () const
bool atLast () const
type * toFirst ()
type * toLast ()
type * operator* () const
type * current () const
type * operator++ ()
type * operator+= (uint j)
type * operator-- ()
type * operator-= (uint j)

Protected Member Functions

type * retptr () const

Member Function Documentation

template<class type>
QSortedListIterator<type>& FX::QSortedListIterator< type >::makeDead (  )  [inline]

Makes the iterator dead (ie; point to nothing).

Reimplemented from FX::QPtrListIterator< type >.

Referenced by FX::QSortedList< type >::findIter().

template<class type>
uint FX::QPtrListIterator< type >::count (  )  const [inline, inherited]

Returns the number of items in the list this iterator references.

template<class type>
bool FX::QPtrListIterator< type >::isEmpty (  )  const [inline, inherited]

Returns true if the list this iterator references is empty.

template<class type>
bool FX::QPtrListIterator< type >::atFirst (  )  const [inline, inherited]

Returns true if this iterator is at the start of its list.

template<class type>
bool FX::QPtrListIterator< type >::atLast (  )  const [inline, inherited]

Returns true if this iterator is at the end of its list.

template<class type>
type* FX::QPtrListIterator< type >::toFirst (  )  [inline, inherited]

Sets the iterator to point to the first item in the list, then returns that item.

template<class type>
type* FX::QPtrListIterator< type >::toLast (  )  [inline, inherited]

Sets the iterator to point to the last item in the list, then returns that item.

template<class type>
type* FX::QPtrListIterator< type >::operator* (  )  const [inline, inherited]

Returns what the iterator points to.

template<class type>
type* FX::QPtrListIterator< type >::current (  )  const [inline, inherited]

template<class type>
type* FX::QPtrListIterator< type >::operator++ (  )  [inline, inherited]

Increments the iterator.

template<class type>
type* FX::QPtrListIterator< type >::operator+= ( uint  j  )  [inline, inherited]

Increments the iterator.

template<class type>
type* FX::QPtrListIterator< type >::operator-- (  )  [inline, inherited]

Decrements the iterator.

template<class type>
type* FX::QPtrListIterator< type >::operator-= ( uint  j  )  [inline, inherited]

Decrements the iterator.


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:28:41 2008 for TnFOX by doxygen v1.5.6