CGAL 6.1.1 - 2D Triangulations

Loading...
Searching...
No Matches
List of all members
CGAL::Triangulation_vertex_base_with_info_2< Info, Traits, Vb > Class Template Reference
Reference Manual » Vertex and Face Classes

`#include <CGAL/Triangulation_vertex_base_with_info_2.h>`

## Definition

template<typename Info, typename Traits, typename Vb>
class CGAL::Triangulation_vertex_base_with_info_2< Info, Traits, Vb >

The class `Triangulation_vertex_base_with_info_2` is designed to be used as a base vertex class of a triangulation.

It provides an easy way to add some user defined information in vertices.

Template Parameters

  Info | is the information the user would like to add to a vertex. It has to be `DefaultConstructible` and `Assignable`.
  Traits | is the geometric traits class which provides the `Point_2`. It is strongly recommended to instantiate this parameter with the traits class used for the triangulation. This ensures that the point type defined by `Triangulation_vertex_base_with_info_2` matches the point type defined by the triangulation.
  Vb | must be a vertex base class from which `Triangulation_vertex_base_with_info_3` derives. By default this parameter is instantiated by `Triangulation_vertex_base_2<Traits>`.

Is model of
  `TriangulationVertexBaseWithInfo_2`
  The parameter `Vb` is a model of some vertex base concept. `Triangulation_vertex_base_with_info_2` derives from `Vb` and will be a model of the same vertex base concept: `TriangulationVertexBase_2`, or `RegularTriangulationVertexBase_2`.

See also
  `CGAL::Triangulation_face_base_with_info_2<Info,Traits,Fb>`
  `CGAL::Triangulation_vertex_base_2<Traits,Vb>`
  `CGAL::Regular_triangulation_vertex_base_2<Traits,Vb>`

Examples
  Triangulation_2/info_insert_with_pair_iterator_2.cpp, Triangulation_2/info_insert_with_pair_iterator_regular_2.cpp, Triangulation_2/info_insert_with_transform_iterator_2.cpp, Triangulation_2/info_insert_with_zip_iterator_2.cpp, and Triangulation_2/terrain_with_info.cpp.

## Types
typedef Info | Info

## Access Functions
const Info & | info () const
| Returns a const reference to the object of type `Info` stored in the vertex.
Info & | info ()
| Returns a reference to the object of type `Info` stored in the vertex.