Qt 4.8
|
Bridges values in Qt's QList container class into an QAbstractXmlForwardIterator. More...
#include <qabstractxmlforwarditerator_p.h>
Public Functions | |
ListIterator (const ListType &list) | |
virtual QList< T > | toList () |
Performs a copy of this QAbstractXmlForwardIterator(with copy()), and returns its items in a QList. More... | |
virtual QVector< T > | toVector () |
Public Functions inherited from QPatternist::ListIteratorPlatform< T, T, ListIterator< T, ListType >, ListType > | |
virtual QAbstractXmlForwardIterator< T >::Ptr | copy () const |
Copies this QAbstractXmlForwardIterator and returns the copy. More... | |
virtual qint64 | count () |
Determines the number of items this QAbstractXmlForwardIterator represents. More... | |
virtual T | current () const |
Returns the current item in the sequence. More... | |
virtual T | 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< T > | |
virtual bool | isEmpty () |
Returns true if the sequence is empty. More... | |
virtual T | 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< T >::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 Functions | |
const T & | inputToOutputItem (const T &inputType) const |
Static Private Functions | |
static QList< T > | toList (const QVector< T > &vector) |
static QList< T > | toList (const QList< T > &list) |
static QVector< T > | toVector (const QVector< T > &vector) |
static QVector< T > | toVector (const QList< T > &list) |
Friends | |
class | DeduplicateIterator |
class | IteratorVector |
class | ListIteratorPlatform< T, T, ListIterator< T, ListType >, ListType > |
Related Functions | |
(Note that these are not member functions.) | |
makeListIterator (const QList< T > &qList) | |
An object generator for ListIterator. More... | |
Related Functions inherited from QAbstractXmlForwardIterator< T > | |
template<typename TResult , typename TSource , typename TMapper > | |
static QAbstractXmlForwardIterator< TResult >::Ptr | makeSequenceMappingIterator (const TMapper &mapper, const QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< TSource > > &source, const DynamicContext::Ptr &context) |
An object generator for SequenceMappingIterator. More... | |
bool | qIsForwardIteratorEnd (const T &unit) |
The Callback QAbstractXmlForwardIterator uses for determining whether unit is the end of a sequence. More... | |
Bridges values in Qt's QList container class into an QAbstractXmlForwardIterator.
ListIterator takes a reference to a QList<T> instance and allows access to that list via its QAbstractXmlForwardIterator interface. ListIterator is parameterized with the type to iterate over, e.g., Item or Expression::Ptr.
ListIterator is used by the ExpressionSequence to create an iterator over its operands. The iterator will be passed to a MappingIterator.
Definition at line 192 of file qabstractxmlforwarditerator_p.h.
|
inline |
Definition at line 222 of file qabstractxmlforwarditerator_p.h.
|
inlineprivate |
Definition at line 237 of file qabstractxmlforwarditerator_p.h.
|
inlinestaticprivate |
Definition at line 211 of file qabstractxmlforwarditerator_p.h.
|
inlinestaticprivate |
Definition at line 216 of file qabstractxmlforwarditerator_p.h.
|
inlinevirtual |
Performs a copy of this QAbstractXmlForwardIterator(with copy()), and returns its items in a QList.
Thus, this function acts as a conversion function, converting the sequence to a QList.
This function may modify the iterator. It is not a getter, but potentially alters the iterator in the same way the next() function does. If this QAbstractXmlForwardIterator must not be modified, such that it can be used for evaluation with next(), use a copy().
Reimplemented from QAbstractXmlForwardIterator< T >.
Definition at line 226 of file qabstractxmlforwarditerator_p.h.
|
inlinestaticprivate |
Definition at line 201 of file qabstractxmlforwarditerator_p.h.
|
inlinestaticprivate |
Definition at line 206 of file qabstractxmlforwarditerator_p.h.
|
inlinevirtual |
Definition at line 231 of file qabstractxmlforwarditerator_p.h.
|
friend |
Definition at line 244 of file qabstractxmlforwarditerator_p.h.
|
friend |
Definition at line 197 of file qabstractxmlforwarditerator_p.h.
|
friend |
Definition at line 241 of file qabstractxmlforwarditerator_p.h.
|
related |
An object generator for ListIterator.
makeListIterator() is a convenience function to avoid specifying the full template instantiation for ListIterator. Conceptually, it is identical to Qt's qMakePair().
Definition at line 250 of file qabstractxmlforwarditerator_p.h.