part_iterator class
The part_
Contents
Constructors, destructors, conversion operators
- part_iterator() defaulted
- Create invalid iterator.
- part_iterator(QgsAbstractGeometry* g, int index)
- Create part iterator for a geometry.
Public functions
- auto operator*() const -> QgsAbstractGeometry*
- Returns the current item.
-
auto operator++() -> part_
iterator& - The prefix ++ operator (++it) advances the iterator to the next part and returns an iterator to the new current part.
-
auto operator++(int) -> part_
iterator - The postfix ++ operator (it++) advances the iterator to the next part and returns an iterator to the previously current part.
- auto partNumber() const -> int
- Returns the part number of the current item.
Function documentation
part_ iterator& QgsAbstractGeometry:: part_iterator:: operator++()
The prefix ++ operator (++it) advances the iterator to the next part and returns an iterator to the new current part.
Calling this function on iterator that is already past the last item leads to undefined results.