Easy3D 2.6.1
Loading...
Searching...
No Matches
PolyMesh::EdgeIterator Class Reference

Edge iterator for PolyMesh. This class iterates linearly over all edges. More...

#include <poly_mesh.h>

Public Member Functions

 EdgeIterator (Edge e=Edge(), const PolyMesh *m=nullptr)
 Default constructor.
 
Edge operator* () const
 Get the edge the iterator refers to.
 
bool operator== (const EdgeIterator &rhs) const
 Are two iterators equal?
 
bool operator!= (const EdgeIterator &rhs) const
 Are two iterators different?
 
EdgeIterator & operator++ ()
 Pre-increment iterator.
 
EdgeIterator & operator-- ()
 Pre-decrement iterator.
 

Detailed Description

Edge iterator for PolyMesh. This class iterates linearly over all edges.

See also
edges_begin(), edges_end()
VertexIterator, HalfFaceIterator, FaceIterator, CellIterator

Constructor & Destructor Documentation

◆ EdgeIterator()

EdgeIterator ( Edge  e = Edge(),
const PolyMesh *  m = nullptr 
)
inlineexplicit

Default constructor.

Parameters
eThe edge to start the iterator
mThe PolyMesh to iterate over

Member Function Documentation

◆ operator!=()

bool operator!= ( const EdgeIterator &  rhs) const
inline

Are two iterators different?

Parameters
rhsThe other iterator to compare
Returns
True if the iterators are different, false otherwise

◆ operator*()

Edge operator* ( ) const
inline

Get the edge the iterator refers to.

Returns
The current edge

◆ operator++()

EdgeIterator & operator++ ( )
inline

Pre-increment iterator.

Returns
Reference to the incremented iterator

◆ operator--()

EdgeIterator & operator-- ( )
inline

Pre-decrement iterator.

Returns
Reference to the decremented iterator

◆ operator==()

bool operator== ( const EdgeIterator &  rhs) const
inline

Are two iterators equal?

Parameters
rhsThe other iterator to compare
Returns
True if the iterators are equal, false otherwise

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