#include <qsortedlist.h>
This iterator works identically to Qt's ones. See their documentation.
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 |
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().
uint FX::QPtrListIterator< type >::count | ( | ) | const [inline, inherited] |
Returns the number of items in the list this iterator references.
bool FX::QPtrListIterator< type >::isEmpty | ( | ) | const [inline, inherited] |
Returns true if the list this iterator references is empty.
bool FX::QPtrListIterator< type >::atFirst | ( | ) | const [inline, inherited] |
Returns true if this iterator is at the start of its list.
bool FX::QPtrListIterator< type >::atLast | ( | ) | const [inline, inherited] |
Returns true if this iterator is at the end of its list.
type* FX::QPtrListIterator< type >::toFirst | ( | ) | [inline, inherited] |
Sets the iterator to point to the first item in the list, then returns that item.
type* FX::QPtrListIterator< type >::toLast | ( | ) | [inline, inherited] |
Sets the iterator to point to the last item in the list, then returns that item.
type* FX::QPtrListIterator< type >::operator* | ( | ) | const [inline, inherited] |
Returns what the iterator points to.
type* FX::QPtrListIterator< type >::current | ( | ) | const [inline, inherited] |
Returns the item this iterator points to.
Referenced by FX::QSortedList< type >::findClosestP(), FX::QSortedList< type >::findP(), FX::QSortedList< type >::removeRef(), and FX::QSortedList< type >::takeRef().
type* FX::QPtrListIterator< type >::operator++ | ( | ) | [inline, inherited] |
Increments the iterator.
type* FX::QPtrListIterator< type >::operator+= | ( | uint | j | ) | [inline, inherited] |
Increments the iterator.
type* FX::QPtrListIterator< type >::operator-- | ( | ) | [inline, inherited] |
Decrements the iterator.
type* FX::QPtrListIterator< type >::operator-= | ( | uint | j | ) | [inline, inherited] |
Decrements the iterator.