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

this class iterates linearly over all edges More...

#include <pmp/SurfaceMesh.h>

Public Member Functions

 EdgeIterator (Edge e=Edge(), const SurfaceMesh *mesh=nullptr)
 Default constructor. More...
 
Edge operator* () const
 get the edge the iterator refers to More...
 
bool operator== (const EdgeIterator &rhs) const
 are two iterators equal? More...
 
bool operator!= (const EdgeIterator &rhs) const
 are two iterators different? More...
 
EdgeIteratoroperator++ ()
 pre-increment iterator More...
 
EdgeIterator operator++ (int)
 post-increment iterator More...
 
EdgeIteratoroperator-- ()
 pre-decrement iterator More...
 
EdgeIterator operator-- (int)
 post-decrement iterator More...
 

Detailed Description

this class iterates linearly over all edges

See also
edges_begin(), edges_end()
VertexIterator, HalfedgeIterator, FaceIterator

Constructor & Destructor Documentation

◆ EdgeIterator()

EdgeIterator ( Edge  e = Edge(),
const SurfaceMesh mesh = nullptr 
)
inline

Default constructor.

Member Function Documentation

◆ operator!=()

bool operator!= ( const EdgeIterator rhs) const
inline

are two iterators different?

◆ operator*()

Edge operator* ( ) const
inline

get the edge the iterator refers to

◆ operator++() [1/2]

EdgeIterator & operator++ ( )
inline

pre-increment iterator

◆ operator++() [2/2]

EdgeIterator operator++ ( int  )
inline

post-increment iterator

◆ operator--() [1/2]

EdgeIterator & operator-- ( )
inline

pre-decrement iterator

◆ operator--() [2/2]

EdgeIterator operator-- ( int  )
inline

post-decrement iterator

◆ operator==()

bool operator== ( const EdgeIterator rhs) const
inline

are two iterators equal?