QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsGeometryPartIterator Class Reference

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

#include <qgsabstractgeometry.h>

Public Member Functions

 QgsGeometryPartIterator ()=default
 Constructor for QgsGeometryPartIterator. More...
 
 QgsGeometryPartIterator (QgsAbstractGeometry *geometry)
 Constructs iterator for the given geometry. More...
 
bool hasNext () const
 Find out whether there are more parts. More...
 
QgsAbstractGeometrynext ()
 Returns next part of the geometry (undefined behavior if hasNext() returns false before calling next()) More...
 

Detailed Description

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

Since
QGIS 3.6

Definition at line 1238 of file qgsabstractgeometry.h.

Constructor & Destructor Documentation

◆ QgsGeometryPartIterator() [1/2]

QgsGeometryPartIterator::QgsGeometryPartIterator ( )
default

Constructor for QgsGeometryPartIterator.

◆ QgsGeometryPartIterator() [2/2]

QgsGeometryPartIterator::QgsGeometryPartIterator ( QgsAbstractGeometry geometry)
inline

Constructs iterator for the given geometry.

Definition at line 1245 of file qgsabstractgeometry.h.

Member Function Documentation

◆ hasNext()

bool QgsGeometryPartIterator::hasNext ( ) const
inline

Find out whether there are more parts.

Definition at line 1253 of file qgsabstractgeometry.h.

◆ next()

QgsAbstractGeometry * QgsGeometryPartIterator::next ( )

Returns next part of the geometry (undefined behavior if hasNext() returns false before calling next())

Definition at line 596 of file qgsabstractgeometry.cpp.


The documentation for this class was generated from the following files: