CGAL 6.1 - CGAL and the Boost Graph Library
Loading...
Searching...
No Matches
CGAL::Triangulation_vertex_base_with_id_2< TriangulationTraits_2, TriangulationVertexBase_2 > Class Template Reference

#include <CGAL/Triangulation_vertex_base_with_id_2.h>

Inherits from

TriangulationVertexBase_2.

Definition

template<typename TriangulationTraits_2, typename TriangulationVertexBase_2>
class CGAL::Triangulation_vertex_base_with_id_2< TriangulationTraits_2, TriangulationVertexBase_2 >

The class Triangulation_vertex_base_with_id_2 is a model of the concept TriangulationVertexBase_2, the base vertex of a 2D-triangulation.

It provides an integer field that can be used to index vertices for BGL algorithms.

Note that the user is in charge of setting indices correctly before running a graph algorithm, by calling the function CGAL::set_triangulation_ids(Triangulation&).

Template Parameters
TriangulationTraits_2is the geometric traits class and must be a model of TriangulationTraits_2.
TriangulationVertexBase_2must be a vertex base class from which Triangulation_vertex_base_with_id_2 derives. It has the default value Triangulation_vertex_base_2<TriangulationTraits_2>.
Is model of
TriangulationVertexBase_2
See also
CGAL::Triangulation_vertex_base_2
Examples
BGL_triangulation_2/dijkstra_with_internal_properties.cpp.

Access Functions

int id () const
 Returns the index.
 
int & id ()
 Returns a reference to the index stored in the vertex.