55 m_cacheCells(cacheCells),
64 "It makes no sense to construct a CachingIterator for a cache that is ItemSequenceCacheCell::Full.");
#define QT_END_NAMESPACE
This macro expands to.
CachingIterator(ItemSequenceCacheCell::Vector &cacheCells, const VariableSlotID slot, const DynamicContext::Ptr &context)
QAbstractXmlForwardIterator< T >::Ptr makeListIterator(const QList< T > &list)
int count(const T &t) const
Returns the number of occurrences of value in the list.
virtual Item current() const
Returns the current item in the sequence.
const DynamicContext::Ptr m_context
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< Item > > Ptr
A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Represents a cache entry for a sequence of items.
const T & at(int i) const
Returns the item at index position i in the list.
The namespace for the internal API of QtXmlPatterns.
ItemSequenceCacheCell::Vector & m_cacheCells
const T & at(int i) const
Returns the item at index position i in the vector.
const VariableSlotID m_varSlot
#define Q_ASSERT_X(cond, where, what)
virtual Item::Iterator::Ptr copy() const
Copies this QAbstractXmlForwardIterator and returns the copy.
Represents an item in the XPath 2.0 Data Model.
virtual xsInteger position() const
Returns the current position in the sequence represented by this.
virtual Item next()
Returns the next item in the sequence, or a null object if the end has been reached.
Item::Iterator::Ptr sourceIterator