QgsGeometryPartIterator class

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

Constructors, destructors, conversion operators

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

Public functions

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