QGIS API Documentation
3.0.2-Girona (307d082)
|
The vertex_iterator class provides STL-style iterator for vertices. More...
#include <qgsabstractgeometry.h>
Public Member Functions | |
vertex_iterator ()=default | |
Create invalid iterator. More... | |
vertex_iterator (const QgsAbstractGeometry *g, int index) | |
Create vertex iterator for a geometry. More... | |
bool | operator!= (const vertex_iterator &other) const |
QgsPoint | operator* () const |
Returns the current item. More... | |
vertex_iterator & | operator++ () |
The prefix ++ operator (++it) advances the iterator to the next vertex and returns an iterator to the new current vertex. More... | |
vertex_iterator | operator++ (int) |
The postfix ++ operator (it++) advances the iterator to the next vertex and returns an iterator to the previously current vertex. More... | |
bool | operator== (const vertex_iterator &other) const |
QgsVertexId | vertexId () const |
Returns vertex ID of the current item. More... | |
The vertex_iterator class provides STL-style iterator for vertices.
Definition at line 551 of file qgsabstractgeometry.h.
|
default |
Create invalid iterator.
QgsAbstractGeometry::vertex_iterator::vertex_iterator | ( | const QgsAbstractGeometry * | g, |
int | index | ||
) |
Create vertex iterator for a geometry.
Definition at line 285 of file qgsabstractgeometry.cpp.
|
inline |
Definition at line 594 of file qgsabstractgeometry.h.
QgsPoint QgsAbstractGeometry::vertex_iterator::operator* | ( | ) | const |
Returns the current item.
Definition at line 323 of file qgsabstractgeometry.cpp.
QgsAbstractGeometry::vertex_iterator & QgsAbstractGeometry::vertex_iterator::operator++ | ( | ) |
The prefix ++ operator (++it) advances the iterator to the next vertex and returns an iterator to the new current vertex.
Calling this function on iterator that is already past the last item leads to undefined results.
Definition at line 295 of file qgsabstractgeometry.cpp.
QgsAbstractGeometry::vertex_iterator QgsAbstractGeometry::vertex_iterator::operator++ | ( | int | ) |
The postfix ++ operator (it++) advances the iterator to the next vertex and returns an iterator to the previously current vertex.
Definition at line 316 of file qgsabstractgeometry.cpp.
bool QgsAbstractGeometry::vertex_iterator::operator== | ( | const vertex_iterator & | other | ) | const |
Definition at line 365 of file qgsabstractgeometry.cpp.
QgsVertexId QgsAbstractGeometry::vertex_iterator::vertexId | ( | ) | const |
Returns vertex ID of the current item.
Definition at line 329 of file qgsabstractgeometry.cpp.