Easy3D 2.6.1
Loading...
Searching...
No Matches
PointCloud::VertexIterator Class Reference

This class iterates linearly over all vertices. More...

#include <easy3d/core/point_cloud.h>

Public Member Functions

 VertexIterator (Vertex v=Vertex(), const PointCloud *m=nullptr)
 Default constructor.
 
Vertex operator* () const
 Get the vertex the iterator refers to.
 
bool operator== (const VertexIterator &rhs) const
 Are two iterators equal?
 
bool operator!= (const VertexIterator &rhs) const
 Are two iterators different?
 
VertexIteratoroperator++ ()
 Pre-increment iterator.
 
VertexIteratoroperator-- ()
 Pre-decrement iterator.
 

Detailed Description

This class iterates linearly over all vertices.

See also
vertices_begin(), vertices_end()

Constructor & Destructor Documentation

◆ VertexIterator()

VertexIterator ( Vertex v = Vertex(),
const PointCloud * m = nullptr )
inlineexplicit

Default constructor.

Parameters
vThe vertex.
mThe point cloud.

Member Function Documentation

◆ operator!=()

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

Are two iterators different?

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

◆ operator*()

Vertex operator* ( ) const
inline

Get the vertex the iterator refers to.

Returns
The vertex.

◆ operator++()

VertexIterator & operator++ ( )
inline

Pre-increment iterator.

Returns
The incremented iterator.

◆ operator--()

VertexIterator & operator-- ( )
inline

Pre-decrement iterator.

Returns
The decremented iterator.

◆ operator==()

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

Are two iterators equal?

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

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