52 #ifndef Patternist_ItemMappingIterator_H 53 #define Patternist_ItemMappingIterator_H 91 template<
typename TResult,
typename TSource,
typename TMapper,
typename Context = DynamicContext::Ptr>
105 const Context &context) :
m_mapper(mapper)
120 const TSource sourceItem(
m_it->
next());
174 template<
typename TResult,
typename TSource,
typename TMapper,
typename Context>
179 const Context &context)
static QAbstractXmlForwardIterator< TResult >::Ptr makeItemMappingIterator(const TMapper &mapper, const QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< TSource > > &source, const Context &context)
An object generator for ItemMappingIterator.
#define QT_END_NAMESPACE
This macro expands to.
virtual xsInteger position() const
Returns the current position in the sequence represented by this.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< T > > Ptr
A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QAbstractXmlForwardIterator class is a base class for forward iterators.
The namespace for the internal API of QtXmlPatterns.
virtual TResult current() const
Returns the current item in the sequence.
virtual QAbstractXmlForwardIterator< TResult >::Ptr copy() const
Copies this QAbstractXmlForwardIterator and returns the copy.
virtual QAbstractXmlForwardIterator< T >::Ptr copy() const
Copies this QAbstractXmlForwardIterator and returns the copy.
ItemMappingIterator(const TMapper &mapper, const typename QAbstractXmlForwardIterator< TSource >::Ptr &iterator, const Context &context)
bool qIsForwardIteratorEnd(const TResult &unit)
The Callback QAbstractXmlForwardIterator uses for determining whether unit is the end of a sequence...
Proxies another QAbstractXmlForwardIterator, and for each item, returns the Item returned from a mapp...
const QAbstractXmlForwardIterator< TSource >::Ptr m_it
virtual T next()=0
Returns the next item in the sequence, or a null object if the end has been reached.