Qt 4.8
Public Functions | Public Variables | List of all members
QFragmentMap< Fragment >::Iterator Class Reference

#include <qfragmentmap_p.h>

Public Functions

bool atEnd () const
 
 Iterator ()
 
 Iterator (QFragmentMap *p, int node)
 
 Iterator (const Iterator &it)
 
bool operator!= (const Iterator &it) const
 
Fragment * operator* ()
 
const Fragment * operator* () const
 
Iteratoroperator++ ()
 
Iteratoroperator-- ()
 
Fragment * operator-> ()
 
const Fragment * operator-> () const
 
bool operator< (const Iterator &it) const
 
bool operator== (const Iterator &it) const
 
int position () const
 
const Fragment * value () const
 
Fragment * value ()
 

Public Variables

quint32 n
 
QFragmentMappt
 

Detailed Description

template<class Fragment>
class QFragmentMap< Fragment >::Iterator

Definition at line 726 of file qfragmentmap_p.h.

Constructors and Destructors

◆ Iterator() [1/3]

template<class Fragment>
QFragmentMap< Fragment >::Iterator::Iterator ( )
inline

Definition at line 732 of file qfragmentmap_p.h.

732 : pt(0), n(0) {}

◆ Iterator() [2/3]

template<class Fragment>
QFragmentMap< Fragment >::Iterator::Iterator ( QFragmentMap p,
int  node 
)
inline

Definition at line 733 of file qfragmentmap_p.h.

733 : pt(p), n(node) {}

◆ Iterator() [3/3]

template<class Fragment>
QFragmentMap< Fragment >::Iterator::Iterator ( const Iterator it)
inline

Definition at line 734 of file qfragmentmap_p.h.

734 : pt(it.pt), n(it.n) {}
#define it(className, varName)

Functions

◆ atEnd()

template<class Fragment>
bool QFragmentMap< Fragment >::Iterator::atEnd ( ) const
inline

Definition at line 736 of file qfragmentmap_p.h.

736 { return !n; }

◆ operator!=()

template<class Fragment>
bool QFragmentMap< Fragment >::Iterator::operator!= ( const Iterator it) const
inline

Definition at line 739 of file qfragmentmap_p.h.

739 { return pt != it.pt || n != it.n; }
#define it(className, varName)

◆ operator*() [1/2]

template<class Fragment>
Fragment* QFragmentMap< Fragment >::Iterator::operator* ( )
inline

Definition at line 742 of file qfragmentmap_p.h.

742 { Q_ASSERT(!atEnd()); return pt->fragment(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Fragment * fragment(uint index)

◆ operator*() [2/2]

template<class Fragment>
const Fragment* QFragmentMap< Fragment >::Iterator::operator* ( ) const
inline

Definition at line 743 of file qfragmentmap_p.h.

743 { Q_ASSERT(!atEnd()); return pt->fragment(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Fragment * fragment(uint index)

◆ operator++()

template<class Fragment>
Iterator& QFragmentMap< Fragment >::Iterator::operator++ ( )
inline

Definition at line 751 of file qfragmentmap_p.h.

751  {
752  n = pt->data.next(n);
753  return *this;
754  }
QFragmentMapData< Fragment > data

◆ operator--()

template<class Fragment>
Iterator& QFragmentMap< Fragment >::Iterator::operator-- ( )
inline

Definition at line 755 of file qfragmentmap_p.h.

755  {
756  n = pt->data.previous(n);
757  return *this;
758  }
QFragmentMapData< Fragment > data

◆ operator->() [1/2]

template<class Fragment>
Fragment* QFragmentMap< Fragment >::Iterator::operator-> ( )
inline

Definition at line 744 of file qfragmentmap_p.h.

744 { Q_ASSERT(!atEnd()); return pt->fragment(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Fragment * fragment(uint index)

◆ operator->() [2/2]

template<class Fragment>
const Fragment* QFragmentMap< Fragment >::Iterator::operator-> ( ) const
inline

Definition at line 745 of file qfragmentmap_p.h.

745 { Q_ASSERT(!atEnd()); return pt->fragment(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Fragment * fragment(uint index)

◆ operator<()

template<class Fragment>
bool QFragmentMap< Fragment >::Iterator::operator< ( const Iterator it) const
inline

Definition at line 740 of file qfragmentmap_p.h.

740 { return position() < it.position(); }
#define it(className, varName)

◆ operator==()

template<class Fragment>
bool QFragmentMap< Fragment >::Iterator::operator== ( const Iterator it) const
inline

Definition at line 738 of file qfragmentmap_p.h.

738 { return pt == it.pt && n == it.n; }
#define it(className, varName)

◆ position()

template<class Fragment>
int QFragmentMap< Fragment >::Iterator::position ( ) const
inline

Definition at line 747 of file qfragmentmap_p.h.

Referenced by QFragmentMap< Fragment >::Iterator::operator<().

747 { Q_ASSERT(!atEnd()); return pt->data.position(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QFragmentMapData< Fragment > data

◆ value() [1/2]

template<class Fragment>
const Fragment* QFragmentMap< Fragment >::Iterator::value ( ) const
inline

Definition at line 748 of file qfragmentmap_p.h.

748 { Q_ASSERT(!atEnd()); return pt->fragment(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Fragment * fragment(uint index)

◆ value() [2/2]

template<class Fragment>
Fragment* QFragmentMap< Fragment >::Iterator::value ( )
inline

Definition at line 749 of file qfragmentmap_p.h.

749 { Q_ASSERT(!atEnd()); return pt->fragment(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Fragment * fragment(uint index)

Properties

◆ n

template<class Fragment>
quint32 QFragmentMap< Fragment >::Iterator::n

◆ pt

template<class Fragment>
QFragmentMap* QFragmentMap< Fragment >::Iterator::pt

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