QSubpathForwardIterator Class Reference

Collaboration diagram for QSubpathForwardIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 31 of file qstroker.cpp.

Public Member Functions

 QSubpathForwardIterator (const QDataBuffer< QStrokerOps::Element > *path)
int position () const
bool hasNext () const
QStrokerOps::Element next ()

Private Attributes

const QDataBuffer< QStrokerOps::Element > * m_path
int m_pos


Constructor & Destructor Documentation

QSubpathForwardIterator::QSubpathForwardIterator ( const QDataBuffer< QStrokerOps::Element > *  path  )  [inline]

Definition at line 34 of file qstroker.cpp.

00035         : m_path(path), m_pos(0) { }


Member Function Documentation

int QSubpathForwardIterator::position (  )  const [inline]

Definition at line 36 of file qstroker.cpp.

References m_pos.

00036 { return m_pos; }

bool QSubpathForwardIterator::hasNext (  )  const [inline]

Definition at line 37 of file qstroker.cpp.

References m_path, m_pos, and QDataBuffer< Type >::size().

Referenced by next().

00037 { return m_pos < m_path->size(); }

Here is the call graph for this function:

QStrokerOps::Element QSubpathForwardIterator::next (  )  [inline]

Definition at line 38 of file qstroker.cpp.

References QDataBuffer< Type >::at(), hasNext(), m_path, and m_pos.

00038 { Q_ASSERT(hasNext()); return m_path->at(m_pos++); }

Here is the call graph for this function:


Member Data Documentation

const QDataBuffer<QStrokerOps::Element>* QSubpathForwardIterator::m_path [private]

Definition at line 41 of file qstroker.cpp.

Referenced by hasNext(), and next().

int QSubpathForwardIterator::m_pos [private]

Definition at line 42 of file qstroker.cpp.

Referenced by hasNext(), next(), and position().


The documentation for this class was generated from the following file:
Generated on Thu Mar 15 19:12:19 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1