pmp-library  1.0

Base class for all entity handles types. More...

#include <pmp/SurfaceMesh.h>

Inheritance diagram for Handle:
Edge Face Halfedge Vertex

Public Member Functions

 Handle (IndexType idx=PMP_MAX_INDEX)
 default constructor with invalid index
 
IndexType idx () const
 Get the underlying index of this handle.
 
void reset ()
 reset handle to be invalid (index=PMP_MAX_INDEX.)
 
bool is_valid () const
 return whether the handle is valid, i.e., the index is not equal to PMP_MAX_INDEX.
 
bool operator== (const Handle &rhs) const
 are two handles equal?
 
bool operator!= (const Handle &rhs) const
 are two handles different?
 
bool operator< (const Handle &rhs) const
 compare operator useful for sorting handles
 

Detailed Description

Base class for all entity handles types.

internally it is basically an index.