Qt 4.8
|
Public Types | |
typedef QAbstractXmlForwardIterator< QXmlNodeModelIndexIteratorPointer >::Ptr | Ptr |
Public Types inherited from QAbstractXmlForwardIterator< OutputType > | |
typedef QList< QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< OutputType > > > | List |
A QList containing QAbstractXmlForwardIterator::Ptr instances. More... | |
typedef QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< OutputType > > | Ptr |
A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass. More... | |
typedef QVector< QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< OutputType > > > | Vector |
A QVector containing QAbstractXmlForwardIterator::Ptr instances. More... | |
Public Functions | |
virtual QAbstractXmlForwardIterator< QXmlNodeModelIndexIteratorPointer >::Ptr | copy () const |
Copies this QAbstractXmlForwardIterator and returns the copy. More... | |
IteratorVector (const ItVector &in) | |
Public Functions inherited from QPatternist::ListIterator< QXmlNodeModelIndexIteratorPointer, QVector< QXmlNodeModelIndexIteratorPointer > > | |
ListIterator (const QVector< QXmlNodeModelIndexIteratorPointer > &list) | |
virtual QList< QXmlNodeModelIndexIteratorPointer > | toList () |
Performs a copy of this QAbstractXmlForwardIterator(with copy()), and returns its items in a QList. More... | |
virtual QVector< QXmlNodeModelIndexIteratorPointer > | toVector () |
Public Functions inherited from QPatternist::ListIteratorPlatform< InputType, OutputType, Derived, ListType > | |
virtual qint64 | count () |
Determines the number of items this QAbstractXmlForwardIterator represents. More... | |
virtual OutputType | current () const |
Returns the current item in the sequence. More... | |
virtual OutputType | next () |
Returns the next item in the sequence, or a null object if the end has been reached. More... | |
virtual qint64 | position () const |
Returns the current position in the sequence represented by this. More... | |
Public Functions inherited from QAbstractXmlForwardIterator< OutputType > | |
virtual bool | isEmpty () |
Returns true if the sequence is empty. More... | |
virtual OutputType | last () |
Returns the item at the end of this QAbstractXmlForwardIterator. More... | |
QAbstractXmlForwardIterator () | |
Default constructor. More... | |
virtual qint64 | sizeHint () const |
Gives a hint to the size of the contained sequence. More... | |
virtual QAbstractXmlForwardIterator< OutputType >::Ptr | toReversed () |
Returns a reverse iterator for the sequence. More... | |
virtual | ~QAbstractXmlForwardIterator () |
Destructor. More... | |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Private Types | |
typedef QVector< QXmlNodeModelIndexIteratorPointer > | ItVector |
One might wonder, why not use makeVectorIterator() directly on a QVector with iterators?
A problem emerges QAbstractXmlForwardIterator::copy(). All "meta iterators" that contain other iterators and so forth, propagate the copy() call such that all involved iterators are copied. However, if we have a ListIterator of iterators it isn't aware of that it contains iterators. Hence, we have this class which is specialized(not in the template sense) on iterators, and hence copies them appropriately.
Definition at line 506 of file qabstractxmlnodemodel.cpp.
Definition at line 508 of file qabstractxmlnodemodel.cpp.
typedef QAbstractXmlForwardIterator<QXmlNodeModelIndexIteratorPointer>::Ptr QPatternist::IteratorVector::Ptr |
Definition at line 510 of file qabstractxmlnodemodel.cpp.
|
inline |
Definition at line 512 of file qabstractxmlnodemodel.cpp.
|
inlinevirtual |
Copies this QAbstractXmlForwardIterator and returns the copy.
A copy and the original instance are completely independent of each other. Because evaluating an QAbstractXmlForwardIterator modifies it, one should always use a copy when an QAbstractXmlForwardIterator needs to be used several times.
Reimplemented from QPatternist::ListIteratorPlatform< InputType, OutputType, Derived, ListType >.
Definition at line 516 of file qabstractxmlnodemodel.cpp.