The QIterator
is a template class that allows iteration over a container in a QVariant
.
A QIterator
can only be created by a QIterable
instance, and can be used in a way similar to other stl-style iterators. Generally, QIterator
should not be used directly, but through its derived classes provided by QSequentialIterable
and QAssociativeIterable
.
See also
QIterable
Creates an iterator from an iterable
and a pointer to a native iterator
.
Returns true
if other
points to a different item than this iterator; otherwise returns false
.
See also
operator==()
Returns an iterator to the item at j
positions forward from this iterator.
See also
operator-()
operator+=()
Returns an iterator to the item at j
positions forward from iterator k
.
The prefix ++
operator (++it
) advances the iterator to the next item in the container and returns an iterator to the new current item.
Calling this function on QSequentialIterable::end() leads to undefined results.
See also
operator--()
This is an overloaded function.
The postfix ++
operator (it++
) advances the iterator to the next item in the container and returns an iterator to the previously current item.
Advances the iterator by j
items.
See also
operator-=()
operator+()
Returns an iterator to the item at j
positions backward from this iterator.
If the container in the QVariant
does not support bi-directional iteration, calling this function leads to undefined results.
See also
operator+()
operator-=()
canReverseIterate()
Returns the distance between the two iterators.
See also
operator+()
operator-=()
canReverseIterate()
The prefix --
operator (--it
) makes the preceding item current and returns an iterator to the new current item.
Calling this function on QSequentialIterable::begin() leads to undefined results.
If the container in the QVariant
does not support bi-directional iteration, calling this function leads to undefined results.
See also
operator++()
canReverseIterate()
This is an overloaded function.
The postfix --
operator (it--
) makes the preceding item current and returns an iterator to the previously current item.
If the container in the QVariant
does not support bi-directional iteration, calling this function leads to undefined results.
See also
canReverseIterate()
Makes the iterator go back by j
items.
If the container in the QVariant
does not support bi-directional iteration, calling this function leads to undefined results.
See also
operator+=()
operator-()
canReverseIterate()
Returns true
if other
points to the same item as this iterator; otherwise returns false
.
See also
operator!=()