QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsGeometryConstPartIterator Class Reference

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

#include <qgsabstractgeometry.h>

Public Member Functions

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

Detailed Description

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

Since
QGIS 3.6

Definition at line 1268 of file qgsabstractgeometry.h.

Constructor & Destructor Documentation

◆ QgsGeometryConstPartIterator() [1/2]

QgsGeometryConstPartIterator::QgsGeometryConstPartIterator ( )
default

Constructor for QgsGeometryConstPartIterator.

◆ QgsGeometryConstPartIterator() [2/2]

QgsGeometryConstPartIterator::QgsGeometryConstPartIterator ( const QgsAbstractGeometry geometry)
inline

Constructs iterator for the given geometry.

Definition at line 1275 of file qgsabstractgeometry.h.

Member Function Documentation

◆ hasNext()

bool QgsGeometryConstPartIterator::hasNext ( ) const
inline

Find out whether there are more parts.

Definition at line 1283 of file qgsabstractgeometry.h.

◆ next()

const QgsAbstractGeometry * QgsGeometryConstPartIterator::next ( )

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

Definition at line 534 of file qgsabstractgeometry.cpp.


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