Template Class MeshHandleIterator

Inheritance Relationships

Derived Types

Class Documentation

template<typename HandleT>
class MeshHandleIterator

An iterator for handles in the BaseMesh.

Important: This is not a fail fast iterator! If the mesh struct is changed while using an instance of this iterator the behavior is undefined!

Template Parameters:

HandleT – The type of the requested handle

Subclassed by lvr2::HemFevIterator< HandleT, ElemT >, pmp::SurfaceMesh::HandleIterator< HandleT >

Public Types

using HandleType = HandleT

Public Functions

virtual MeshHandleIterator &operator++() = 0

Advances the iterator once. Using the dereference operator afterwards will yield the next handle.

virtual bool operator==(const MeshHandleIterator &other) const = 0
virtual bool operator!=(const MeshHandleIterator &other) const = 0
virtual HandleT operator*() const = 0

Returns the current handle.

virtual ~MeshHandleIterator() = default