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

QGCacheIterator Class Reference

The QGCacheIterator class is an internal class for implementing QCacheIterator and QIntCacheIterator. More...

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

Inheritance diagram for QGCacheIterator:

Inheritance graph
[legend]
Collaboration diagram for QGCacheIterator:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 QGCacheIterator (const QGCache &)
 QGCacheIterator (const QGCacheIterator &)
 ~QGCacheIterator ()
QGCacheIteratoroperator= (const QGCacheIterator &)
uint count () const
bool atFirst () const
bool atLast () const
QPtrCollection::Item toFirst ()
QPtrCollection::Item toLast ()
QPtrCollection::Item get () const
QString getKeyString () const
const char * getKeyAscii () const
long getKeyInt () const
QPtrCollection::Item operator() ()
QPtrCollection::Item operator++ ()
QPtrCollection::Item operator+= (uint)
QPtrCollection::Item operator-- ()
QPtrCollection::Item operator-= (uint)

Protected Attributes

QCListItit

Detailed Description

The QGCacheIterator class is an internal class for implementing QCacheIterator and QIntCacheIterator.

For internal use only.

QGCacheIterator is a strictly internal class that does the heavy work for QCacheIterator and QIntCacheIterator.

Definition at line 98 of file qgcache.h.


Constructor & Destructor Documentation

QGCacheIterator::QGCacheIterator const QGCache c  )  [protected]
 

Constructs an iterator that operates on the cache c.

Definition at line 689 of file qgcache.cpp.

References it, QGCache::lruList, and Q_ASSERT.

QGCacheIterator::QGCacheIterator const QGCacheIterator ci  )  [protected]
 

Constructs an iterator that operates on the same cache as ci.

Definition at line 701 of file qgcache.cpp.

References it, and Q_ASSERT.

QGCacheIterator::~QGCacheIterator  )  [protected]
 

Destroys the iterator.

Definition at line 713 of file qgcache.cpp.

References it.


Member Function Documentation

bool QGCacheIterator::atFirst  )  const [protected]
 

Returns TRUE if the iterator points to the first item.

Reimplemented in QCacheIterator< type >.

Definition at line 741 of file qgcache.cpp.

References QPtrListIterator< type >::atFirst(), and it.

Referenced by QCacheIterator< type >::atFirst().

bool QGCacheIterator::atLast  )  const [protected]
 

Returns TRUE if the iterator points to the last item.

Reimplemented in QCacheIterator< type >.

Definition at line 750 of file qgcache.cpp.

References QPtrListIterator< type >::atLast(), and it.

Referenced by QCacheIterator< type >::atLast().

uint QGCacheIterator::count  )  const [protected]
 

Returns the number of items in the cache.

Reimplemented in QCacheIterator< type >.

Definition at line 732 of file qgcache.cpp.

References QPtrListIterator< type >::count(), and it.

Referenced by QCacheIterator< type >::count(), and QCacheIterator< type >::isEmpty().

QPtrCollection::Item QGCacheIterator::get  )  const [protected]
 

Returns the current item.

Definition at line 779 of file qgcache.cpp.

References QPtrListIterator< type >::current(), QCacheItem::data, and it.

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

const char * QGCacheIterator::getKeyAscii  )  const [protected]
 

Returns the key of the current item, as a -terminated C string.

Definition at line 799 of file qgcache.cpp.

References QPtrListIterator< type >::current(), it, and QCacheItem::key.

long QGCacheIterator::getKeyInt  )  const [protected]
 

Returns the key of the current item, as a long.

Definition at line 809 of file qgcache.cpp.

References QPtrListIterator< type >::current(), it, and QCacheItem::key.

QString QGCacheIterator::getKeyString  )  const [protected]
 

Returns the key of the current item.

Definition at line 789 of file qgcache.cpp.

References QPtrListIterator< type >::current(), it, QCacheItem::key, and QString::null.

Referenced by QCacheIterator< type >::currentKey().

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

Moves to the next item (postfix).

Reimplemented in QCacheIterator< type >.

Definition at line 819 of file qgcache.cpp.

References QCacheItem::data, and it.

Referenced by QCacheIterator< type >::operator()().

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

Moves to the next item (prefix).

Reimplemented in QCacheIterator< type >.

Definition at line 829 of file qgcache.cpp.

References QCacheItem::data, and it.

Referenced by QCacheIterator< type >::operator++().

QPtrCollection::Item QGCacheIterator::operator+= uint  jump  )  [protected]
 

Moves jump positions forward.

Reimplemented in QCacheIterator< type >.

Definition at line 839 of file qgcache.cpp.

References QCacheItem::data, and it.

Referenced by QCacheIterator< type >::operator+=().

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

Moves to the previous item (prefix).

Reimplemented in QCacheIterator< type >.

Definition at line 849 of file qgcache.cpp.

References QCacheItem::data, and it.

Referenced by QCacheIterator< type >::operator--().

QPtrCollection::Item QGCacheIterator::operator-= uint  jump  )  [protected]
 

Moves jump positions backward.

Reimplemented in QCacheIterator< type >.

Definition at line 859 of file qgcache.cpp.

References QCacheItem::data, and it.

Referenced by QCacheIterator< type >::operator-=().

QGCacheIterator & QGCacheIterator::operator= const QGCacheIterator ci  )  [protected]
 

Assigns the iterator ci to this cache iterator.

Definition at line 722 of file qgcache.cpp.

References it.

Referenced by QCacheIterator< type >::operator=().

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

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

Reimplemented in QCacheIterator< type >.

Definition at line 759 of file qgcache.cpp.

References QCacheItem::data, it, and QPtrListIterator< type >::toFirst().

Referenced by QCacheIterator< type >::toFirst().

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

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

Reimplemented in QCacheIterator< type >.

Definition at line 769 of file qgcache.cpp.

References QCacheItem::data, it, and QPtrListIterator< type >::toLast().

Referenced by QCacheIterator< type >::toLast().


Member Data Documentation

QCListIt* QGCacheIterator::it [protected]
 

Definition at line 124 of file qgcache.h.

Referenced by atFirst(), atLast(), count(), get(), getKeyAscii(), getKeyInt(), getKeyString(), operator()(), operator++(), operator+=(), operator--(), operator-=(), operator=(), QGCacheIterator(), toFirst(), toLast(), and ~QGCacheIterator().


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