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

QGDictIterator Class Reference

The QGDictIterator class is an internal class for implementing QDictIterator and QIntDictIterator. More...

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

Inheritance diagram for QGDictIterator:

Inheritance graph
[legend]
Collaboration diagram for QGDictIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QGDictIterator (const QGDict &)
 QGDictIterator (const QGDictIterator &)
QGDictIteratoroperator= (const QGDictIterator &)
 ~QGDictIterator ()
QPtrCollection::Item toFirst ()
QPtrCollection::Item get () const
QString getKeyString () const
const char * getKeyAscii () const
long getKeyInt () const
void * getKeyPtr () const
QPtrCollection::Item operator() ()
QPtrCollection::Item operator++ ()
QPtrCollection::Item operator+= (uint)

Protected Attributes

QGDictdict

Private Attributes

QBaseBucketcurNode
uint curIndex

Friends

class QGDict

Detailed Description

The QGDictIterator class is an internal class for implementing QDictIterator and QIntDictIterator.

For internal use only.

QGDictIterator is a strictly internal class that does the heavy work for QDictIterator and QIntDictIterator.

Definition at line 167 of file qgdict.h.


Constructor & Destructor Documentation

QGDictIterator::QGDictIterator const QGDict d  ) 
 

Constructs an iterator that operates on the dictionary d.

Definition at line 1013 of file qgdict.cpp.

References QPtrList< type >::append(), dict, QGDict::iterators, and toFirst().

QGDictIterator::QGDictIterator const QGDictIterator it  ) 
 

Constructs a copy of the iterator it.

Definition at line 1028 of file qgdict.cpp.

References QPtrList< type >::append(), curIndex, curNode, dict, and QGDict::iterators.

QGDictIterator::~QGDictIterator  ) 
 

Destroys the iterator.

Definition at line 1058 of file qgdict.cpp.

References dict, QGDict::iterators, and QPtrList< type >::removeRef().


Member Function Documentation

QPtrCollection::Item QGDictIterator::get  )  const [inline]
 

Definition at line 196 of file qgdict.h.

References curNode, and QBaseBucket::getData().

Referenced by QIntDictIterator< Key >::current(), QDictIterator< OipkgPackage >::current(), QAsciiDictIterator< type >::current(), QDictIterator< OipkgPackage >::operator *(), QIntDictIterator< Key >::operator type *(), QDictIterator< OipkgPackage >::operator type *(), QAsciiDictIterator< type >::operator type *(), QGDict::operator=(), and QGDict::QGDict().

const char * QGDictIterator::getKeyAscii  )  const [inline]
 

Definition at line 206 of file qgdict.h.

References curNode.

Referenced by QAsciiDictIterator< type >::currentKey(), QGDict::operator=(), and QGDict::QGDict().

long QGDictIterator::getKeyInt  )  const [inline]
 

Definition at line 211 of file qgdict.h.

References curNode.

Referenced by QIntDictIterator< Key >::currentKey(), QGDict::operator=(), and QGDict::QGDict().

void * QGDictIterator::getKeyPtr  )  const [inline]
 

Definition at line 216 of file qgdict.h.

References curNode.

Referenced by QGDict::operator=(), and QGDict::QGDict().

QString QGDictIterator::getKeyString  )  const [inline]
 

Definition at line 201 of file qgdict.h.

References curNode, and QString::null.

Referenced by QDictIterator< OipkgPackage >::currentKey(), QGDict::operator=(), and QGDict::QGDict().

QPtrCollection::Item QGDictIterator::operator()  ) 
 

Moves to the next item (postfix).

Reimplemented in QAsciiDictIterator< type >, QDictIterator< type >, QIntDictIterator< type >, QDictIterator< void >, QDictIterator< OipkgPackage >, and QIntDictIterator< Key >.

Definition at line 1095 of file qgdict.cpp.

References curNode, d, dict, QBaseBucket::getData(), operator++(), and qWarning().

Referenced by QIntDictIterator< Key >::operator()(), QDictIterator< OipkgPackage >::operator()(), and QAsciiDictIterator< type >::operator()().

QPtrCollection::Item QGDictIterator::operator++  ) 
 

Moves to the next item (prefix).

Reimplemented in QAsciiDictIterator< type >, QDictIterator< type >, QIntDictIterator< type >, QDictIterator< void >, QDictIterator< OipkgPackage >, and QIntDictIterator< Key >.

Definition at line 1114 of file qgdict.cpp.

References curIndex, curNode, dict, QBaseBucket::getData(), QBaseBucket::getNext(), i, qWarning(), QGDict::size(), size, v, and QGDict::vec.

Referenced by operator()(), QIntDictIterator< Key >::operator++(), QDictIterator< OipkgPackage >::operator++(), QAsciiDictIterator< type >::operator++(), and operator+=().

QPtrCollection::Item QGDictIterator::operator+= uint  jumps  ) 
 

Moves jumps positions forward.

Reimplemented in QAsciiDictIterator< type >, QDictIterator< type >, QIntDictIterator< type >, QDictIterator< void >, QDictIterator< OipkgPackage >, and QIntDictIterator< Key >.

Definition at line 1144 of file qgdict.cpp.

References curNode, QBaseBucket::getData(), and operator++().

Referenced by QIntDictIterator< Key >::operator+=(), QDictIterator< OipkgPackage >::operator+=(), and QAsciiDictIterator< type >::operator+=().

QGDictIterator & QGDictIterator::operator= const QGDictIterator it  ) 
 

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

Definition at line 1042 of file qgdict.cpp.

References curIndex, curNode, dict, QGDict::iterators, and QPtrList< type >::removeRef().

QPtrCollection::Item QGDictIterator::toFirst  ) 
 

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

Reimplemented in QAsciiDictIterator< type >, QDictIterator< type >, QIntDictIterator< type >, QDictIterator< void >, QDictIterator< OipkgPackage >, and QIntDictIterator< Key >.

Definition at line 1069 of file qgdict.cpp.

References QGDict::count(), curIndex, curNode, dict, QBaseBucket::getData(), i, qWarning(), v, and QGDict::vec.

Referenced by QGDictIterator(), QGDict::resize(), QIntDictIterator< Key >::toFirst(), QDictIterator< OipkgPackage >::toFirst(), and QAsciiDictIterator< type >::toFirst().


Friends And Related Function Documentation

friend class QGDict [friend]
 

Definition at line 169 of file qgdict.h.


Member Data Documentation

uint QGDictIterator::curIndex [private]
 

Definition at line 193 of file qgdict.h.

Referenced by operator++(), operator=(), QGDictIterator(), and toFirst().

QBaseBucket* QGDictIterator::curNode [private]
 

Definition at line 192 of file qgdict.h.

Referenced by QGDict::clear(), get(), getKeyAscii(), getKeyInt(), getKeyPtr(), getKeyString(), operator()(), operator++(), operator+=(), operator=(), QGDictIterator(), toFirst(), and QGDict::unlink_common().

QGDict* QGDictIterator::dict [protected]
 

Definition at line 189 of file qgdict.h.

Referenced by QIntDictIterator< Key >::count(), QDictIterator< OipkgPackage >::count(), QAsciiDictIterator< type >::count(), QIntDictIterator< Key >::isEmpty(), QDictIterator< OipkgPackage >::isEmpty(), QAsciiDictIterator< type >::isEmpty(), operator()(), operator++(), operator=(), QGDictIterator(), toFirst(), and ~QGDictIterator().


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