QgsGeometryConstPartIterator class

Java-style iterator for const traversal of parts of a geometry.

Constructors, destructors, conversion operators

QgsGeometryConstPartIterator() defaulted
Constructor for QgsGeometryConstPartIterator.
QgsGeometryConstPartIterator(const QgsAbstractGeometry* geometry)
Constructs iterator for the given geometry.

Public functions

auto hasNext() const -> bool
Find out whether there are more parts.
auto next() -> const QgsAbstractGeometry*
Returns next part of the geometry (undefined behavior if hasNext() returns false before calling next())