GitHub link
Polygon Mesh Processing Library
SurfaceMesh::VertexIterator Class Reference

An iterator class to iterate linearly over all vertices. More...

#include <pmp/SurfaceMesh.h>

Public Member Functions

 VertexIterator (Vertex v=Vertex(), const SurfaceMesh *m=nullptr)
 Default constructor. More...
 
Vertex operator* () const
 get the vertex the iterator refers to More...
 
bool operator== (const VertexIterator &rhs) const
 are two iterators equal? More...
 
bool operator!= (const VertexIterator &rhs) const
 are two iterators different? More...
 
VertexIteratoroperator++ ()
 pre-increment iterator More...
 
VertexIterator operator++ (int)
 post-increment iterator More...
 
VertexIteratoroperator-- ()
 pre-decrement iterator More...
 
VertexIterator operator-- (int)
 post-decrement iterator More...
 

Detailed Description

An iterator class to iterate linearly over all vertices.

Constructor & Destructor Documentation

◆ VertexIterator()

VertexIterator ( Vertex  v = Vertex(),
const SurfaceMesh m = nullptr 
)
inline

Default constructor.

Member Function Documentation

◆ operator!=()

bool operator!= ( const VertexIterator rhs) const
inline

are two iterators different?

◆ operator*()

Vertex operator* ( ) const
inline

get the vertex the iterator refers to

◆ operator++() [1/2]

VertexIterator & operator++ ( )
inline

pre-increment iterator

◆ operator++() [2/2]

VertexIterator operator++ ( int  )
inline

post-increment iterator

◆ operator--() [1/2]

VertexIterator & operator-- ( )
inline

pre-decrement iterator

◆ operator--() [2/2]

VertexIterator operator-- ( int  )
inline

post-decrement iterator

◆ operator==()

bool operator== ( const VertexIterator rhs) const
inline

are two iterators equal?