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

Cell iterator for PolyMesh. This class iterates linearly over all cells. More...

#include <poly_mesh.h>

Public Member Functions

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

Detailed Description

Cell iterator for PolyMesh. This class iterates linearly over all cells.

See also
cells_begin(), cells_end()
VertexIterator, EdgeIterator, HalfFaceIterator, FaceIterator

Constructor & Destructor Documentation

◆ CellIterator()

CellIterator ( Cell  c = Cell(),
const PolyMesh *  m = nullptr 
)
inlineexplicit

Default constructor.

Parameters
cThe cell to start the iterator
mThe PolyMesh to iterate over

Member Function Documentation

◆ operator!=()

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

Are two iterators different?

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

◆ operator*()

Cell operator* ( ) const
inline

Get the cell the iterator refers to.

Returns
The current cell

◆ operator++()

CellIterator & operator++ ( )
inline

Pre-increment iterator.

Returns
Reference to the incremented iterator

◆ operator--()

CellIterator & operator-- ( )
inline

Pre-decrement iterator.

Returns
Reference to the decremented iterator

◆ operator==()

bool operator== ( const CellIterator &  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: