Qt 4.8
Public Functions | Properties | List of all members
QSubpathForwardIterator Class Reference

Public Functions

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

Properties

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

Detailed Description

Definition at line 53 of file qstroker.cpp.

Constructors and Destructors

◆ QSubpathForwardIterator()

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

Definition at line 56 of file qstroker.cpp.

57  : m_path(path), m_pos(0) { }
const QDataBuffer< QStrokerOps::Element > * m_path
Definition: qstroker.cpp:63

Functions

◆ hasNext()

bool QSubpathForwardIterator::hasNext ( ) const
inline

Definition at line 59 of file qstroker.cpp.

Referenced by next(), QSubpathBackwardIterator::next(), and QSubpathFlatIterator::next().

59 { return m_pos < m_path->size(); }
const QDataBuffer< QStrokerOps::Element > * m_path
Definition: qstroker.cpp:63
int size() const
Definition: qdatabuffer_p.h:83

◆ next()

QStrokerOps::Element QSubpathForwardIterator::next ( )
inline

Definition at line 60 of file qstroker.cpp.

60 { Q_ASSERT(hasNext()); return m_path->at(m_pos++); }
const QDataBuffer< QStrokerOps::Element > * m_path
Definition: qstroker.cpp:63
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
bool hasNext() const
Definition: qstroker.cpp:59
Type & at(int i)
Definition: qdatabuffer_p.h:86

◆ position()

int QSubpathForwardIterator::position ( ) const
inline

Definition at line 58 of file qstroker.cpp.

58 { return m_pos; }

Properties

◆ m_path

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

◆ m_pos

int QSubpathForwardIterator::m_pos
private

The documentation for this class was generated from the following file: