Class Handle

Inheritance Relationships

Derived Types

Class Documentation

class Handle

Base class for all entity handles types.

internally it is basically an index.

Subclassed by lvr2::BaseOptionalHandle< HalfEdgeHandle >, lvr2::BaseOptionalHandle< FaceHandle >, lvr2::BaseOptionalHandle< VertexHandle >, lvr2::BaseOptionalHandle< ClusterHandle >, lvr2::BaseOptionalHandle< EdgeHandle >, lvr2::BaseOptionalHandle< NonOptionalT >, lvr2::ClusterHandle, lvr2::HalfEdgeHandle, lvr2::TextureHandle, pmp::Edge, pmp::Face, pmp::Halfedge, pmp::Vertex

Public Functions

inline explicit Handle(IndexType idx = PMP_MAX_INDEX)

default constructor with invalid index

inline IndexType idx() const

Get the underlying index of this handle.

inline void reset()

reset handle to be invalid (index=PMP_MAX_INDEX.)

inline bool is_valid() const

return whether the handle is valid, i.e., the index is not equal to PMP_MAX_INDEX.

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

are two handles equal?

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

are two handles different?

inline bool operator<(const Handle &rhs) const

compare operator useful for sorting handles