Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QGListIterator Class Reference

The QGListIterator class is an internal class for implementing QPtrListIterator. More...

#include </home/clem/local/src/opie/qmake/include/qglist.h>

Inheritance diagram for QGListIterator:

Inheritance graph
[legend]
Collaboration diagram for QGListIterator:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 QGListIterator (const QGList &)
 QGListIterator (const QGListIterator &)
QGListIteratoroperator= (const QGListIterator &)
 ~QGListIterator ()
bool atFirst () const
bool atLast () const
QPtrCollection::Item toFirst ()
QPtrCollection::Item toLast ()
QPtrCollection::Item get () const
QPtrCollection::Item operator() ()
QPtrCollection::Item operator++ ()
QPtrCollection::Item operator+= (uint)
QPtrCollection::Item operator-- ()
QPtrCollection::Item operator-= (uint)

Protected Attributes

QGListlist

Private Attributes

QLNodecurNode

Friends

class QGList
class QGListIteratorList

Detailed Description

The QGListIterator class is an internal class for implementing QPtrListIterator.

For internal use only.

QGListIterator is a strictly internal class that does the heavy work for QPtrListIterator.

Definition at line 206 of file qglist.h.


Constructor & Destructor Documentation

QGListIterator::QGListIterator const QGList l  )  [protected]
 

For internal use only.

Constructs an iterator that operates on the list l.

Definition at line 1083 of file qglist.cpp.

References QGListIteratorList::add(), curNode, QGList::firstNode, QGList::iterators, and list.

QGListIterator::QGListIterator const QGListIterator it  )  [protected]
 

For internal use only.

Constructs a copy of the iterator it.

Definition at line 1099 of file qglist.cpp.

References QGListIteratorList::add(), curNode, QGList::iterators, and list.

QGListIterator::~QGListIterator  )  [protected]
 

For internal use only.

Destroys the iterator.

Definition at line 1129 of file qglist.cpp.

References QGList::iterators, list, and QGListIteratorList::remove().


Member Function Documentation

bool QGListIterator::atFirst  )  const [inline, protected]
 

For internal use only.

Returns TRUE if the iterator points to the first item, otherwise FALSE.

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 236 of file qglist.h.

References curNode, QGList::firstNode, and list.

Referenced by QPtrListIterator< QCacheItem >::atFirst().

bool QGListIterator::atLast  )  const [inline, protected]
 

For internal use only.

Returns TRUE if the iterator points to the last item, otherwise FALSE.

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 241 of file qglist.h.

References curNode, QGList::lastNode, and list.

Referenced by QPtrListIterator< QCacheItem >::atLast().

QPtrCollection::Item QGListIterator::get  )  const [inline, protected]
 

For internal use only.

Returns the iterator item.

Definition at line 246 of file qglist.h.

References curNode, and QLNode::data.

Referenced by QPtrListIterator< QCacheItem >::current(), QPtrListIterator< QCacheItem >::operator *(), and QPtrListIterator< QCacheItem >::operator type *().

QPtrCollection::Item QGListIterator::operator()  )  [protected]
 

For internal use only.

Moves to the next item (postfix).

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1194 of file qglist.cpp.

References curNode, d, QLNode::getData(), and QLNode::next.

Referenced by QPtrListIterator< QCacheItem >::operator()().

QPtrCollection::Item QGListIterator::operator++  )  [protected]
 

For internal use only.

Moves to the next item (prefix).

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1208 of file qglist.cpp.

References curNode, QLNode::getData(), and QLNode::next.

Referenced by QPtrListIterator< QCacheItem >::operator++().

QPtrCollection::Item QGListIterator::operator+= uint  jumps  )  [protected]
 

For internal use only.

Moves jumps positions forward.

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1221 of file qglist.cpp.

References curNode, QLNode::getData(), and QLNode::next.

Referenced by QPtrListIterator< QCacheItem >::operator+=().

QPtrCollection::Item QGListIterator::operator--  )  [protected]
 

For internal use only.

Moves to the previous item (prefix).

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1233 of file qglist.cpp.

References curNode, QLNode::getData(), and QLNode::prev.

Referenced by QPtrListIterator< QCacheItem >::operator--().

QPtrCollection::Item QGListIterator::operator-= uint  jumps  )  [protected]
 

For internal use only.

Moves jumps positions backward.

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1246 of file qglist.cpp.

References curNode, QLNode::getData(), and QLNode::prev.

Referenced by QPtrListIterator< QCacheItem >::operator-=().

QGListIterator & QGListIterator::operator= const QGListIterator it  )  [protected]
 

For internal use only.

Assigns a copy of the iterator it and returns a reference to this iterator.

Definition at line 1113 of file qglist.cpp.

References curNode, QGList::iterators, list, and QGListIteratorList::remove().

Referenced by QPtrListIterator< QCacheItem >::operator=().

QPtrCollection::Item QGListIterator::toFirst  )  [protected]
 

For internal use only.

Sets the list iterator to point to the first item in the list.

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1154 of file qglist.cpp.

References curNode, QGList::firstNode, QLNode::getData(), list, and qWarning().

Referenced by QPtrListIterator< QCacheItem >::toFirst().

QPtrCollection::Item QGListIterator::toLast  )  [protected]
 

For internal use only.

Sets the list iterator to point to the last item in the list.

Reimplemented in QPtrListIterator< type >, and QPtrListIterator< QCacheItem >.

Definition at line 1170 of file qglist.cpp.

References curNode, QLNode::getData(), QGList::lastNode, list, and qWarning().

Referenced by QPtrListIterator< QCacheItem >::toLast().


Friends And Related Function Documentation

friend class QGList [friend]
 

Definition at line 208 of file qglist.h.

friend class QGListIteratorList [friend]
 

Definition at line 209 of file qglist.h.


Member Data Documentation

QLNode* QGListIterator::curNode [private]
 

Definition at line 232 of file qglist.h.

Referenced by atFirst(), atLast(), get(), QGListIteratorList::notifyClear(), QGListIteratorList::notifyRemove(), operator()(), operator++(), operator+=(), operator--(), operator-=(), operator=(), QGListIterator(), toFirst(), and toLast().

QGList* QGListIterator::list [protected]
 

Definition at line 229 of file qglist.h.

Referenced by atFirst(), atLast(), QPtrListIterator< QCacheItem >::count(), QPtrListIterator< QCacheItem >::isEmpty(), QGListIteratorList::notifyClear(), operator=(), QGListIterator(), toFirst(), toLast(), and ~QGListIterator().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:47:18 2005 for OPIE by  doxygen 1.4.2