|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
The part_iterator class provides an STL-style iterator for const references to geometry parts. More...
#include <qgsabstractgeometry.h>
Public Member Functions | |
| const_part_iterator ()=default | |
| Create invalid iterator. | |
| const_part_iterator (const QgsAbstractGeometry *g, int index) | |
| Create part iterator for a geometry. | |
| bool | operator!= (const_part_iterator other) const |
| const QgsAbstractGeometry * | operator* () const |
| Returns the current item. | |
| const_part_iterator & | operator++ () |
| The prefix ++ operator (++it) advances the iterator to the next part and returns an iterator to the new current part. | |
| const_part_iterator | operator++ (int) |
| The postfix ++ operator (it++) advances the iterator to the next part and returns an iterator to the previously current part. | |
| bool | operator== (const_part_iterator other) const |
| int | partNumber () const |
| Returns the part number of the current item. | |
The part_iterator class provides an STL-style iterator for const references to geometry parts.
Definition at line 916 of file qgsabstractgeometry.h.
|
default |
Create invalid iterator.
| QgsAbstractGeometry::const_part_iterator::const_part_iterator | ( | const QgsAbstractGeometry * | g, |
| int | index ) |
Create part iterator for a geometry.
Definition at line 613 of file qgsabstractgeometry.cpp.
|
inline |
Definition at line 946 of file qgsabstractgeometry.h.
| const QgsAbstractGeometry * QgsAbstractGeometry::const_part_iterator::operator* | ( | ) | const |
Returns the current item.
Definition at line 642 of file qgsabstractgeometry.cpp.
| QgsAbstractGeometry::const_part_iterator & QgsAbstractGeometry::const_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.
Definition at line 619 of file qgsabstractgeometry.cpp.
| QgsAbstractGeometry::const_part_iterator QgsAbstractGeometry::const_part_iterator::operator++ | ( | int | ) |
The postfix ++ operator (it++) advances the iterator to the next part and returns an iterator to the previously current part.
Definition at line 635 of file qgsabstractgeometry.cpp.
| bool QgsAbstractGeometry::const_part_iterator::operator== | ( | QgsAbstractGeometry::const_part_iterator | other | ) | const |
Definition at line 658 of file qgsabstractgeometry.cpp.
| int QgsAbstractGeometry::const_part_iterator::partNumber | ( | ) | const |
Returns the part number of the current item.
Definition at line 653 of file qgsabstractgeometry.cpp.