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

#include <qfragmentmap_p.h>

Public Functions

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

Public Variables

quint32 n
 
const QFragmentMappt
 

Detailed Description

template<class Fragment>
class QFragmentMap< Fragment >::ConstIterator

Definition at line 763 of file qfragmentmap_p.h.

Constructors and Destructors

◆ ConstIterator() [1/4]

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

Functions

Definition at line 772 of file qfragmentmap_p.h.

772 : pt(0), n(0) {}
const QFragmentMap * pt

◆ ConstIterator() [2/4]

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

Definition at line 773 of file qfragmentmap_p.h.

773 : pt(p), n(node) {}
const QFragmentMap * pt

◆ ConstIterator() [3/4]

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

Definition at line 774 of file qfragmentmap_p.h.

774 : pt(it.pt), n(it.n) {}
#define it(className, varName)
const QFragmentMap * pt

◆ ConstIterator() [4/4]

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

Definition at line 775 of file qfragmentmap_p.h.

775 : pt(it.pt), n(it.n) {}
#define it(className, varName)
const QFragmentMap * pt

Functions

◆ atEnd()

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

Definition at line 777 of file qfragmentmap_p.h.

777 { return !n; }

◆ operator!=()

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

Definition at line 780 of file qfragmentmap_p.h.

780 { return pt != it.pt || n != it.n; }
#define it(className, varName)
const QFragmentMap * pt

◆ operator*()

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

Definition at line 783 of file qfragmentmap_p.h.

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

◆ operator++()

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

Definition at line 790 of file qfragmentmap_p.h.

790  {
791  n = pt->data.next(n);
792  return *this;
793  }
const QFragmentMap * pt
QFragmentMapData< Fragment > data

◆ operator--()

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

Definition at line 794 of file qfragmentmap_p.h.

794  {
795  n = pt->data.previous(n);
796  return *this;
797  }
const QFragmentMap * pt
QFragmentMapData< Fragment > data

◆ operator->()

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

Definition at line 784 of file qfragmentmap_p.h.

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

◆ operator<()

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

Definition at line 781 of file qfragmentmap_p.h.

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

◆ operator==()

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

Definition at line 779 of file qfragmentmap_p.h.

779 { return pt == it.pt && n == it.n; }
#define it(className, varName)
const QFragmentMap * pt

◆ position()

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

Definition at line 786 of file qfragmentmap_p.h.

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

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

◆ size()

template<class Fragment>
int QFragmentMap< Fragment >::ConstIterator::size ( ) const
inline

Definition at line 787 of file qfragmentmap_p.h.

787 { Q_ASSERT(!atEnd()); return pt->data.size(n); }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
const QFragmentMap * pt
QFragmentMapData< Fragment > data

◆ value()

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

Definition at line 788 of file qfragmentmap_p.h.

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

Properties

◆ n

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

◆ pt

template<class Fragment>
const QFragmentMap* QFragmentMap< Fragment >::ConstIterator::pt

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