CGAL 5.1 - dD Triangulations
CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ > Class Template Reference

#include <CGAL/Triangulation_vertex.h>

Definition

template<typename TriangulationTraits_, typename Data, typename TriangulationDSVertex_>
class CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >

The class Triangulation_vertex is a model of the concept TriangulationVertex. It is used by default for representing vertices in the class Triangulation<TriangulationTraits_, TriangulationDataStructure_>.

A Triangulation_vertex stores a point and an incident full cell.

Template Parameters
<tt>TriangulationTraits_</tt>must be a model of the concept TriangulationTraits. It provides geometric types and predicates for use in the Triangulation<TriangulationTraits_, TriangulationDataStructure_> class. It is of interest here for its declaration of the Point type.
Datais an optional type of data to be stored in the vertex class. The class template Triangulation_vertex accepts that no second parameter be specified. In this case, Data defaults to CGAL::No_vertex_data. CGAL::No_vertex_data can be explicitely specified to allow to access the third parameter.
<tt>TriangulationDSVertex_</tt>must be a model of the concept TriangulationDSVertex. The class template Triangulation_vertex accepts that no third parameter be specified. It also accepts the tag CGAL::Default as third parameter. In both cases, TriangulationDSVertex_ defaults to CGAL::Triangulation_ds_vertex<>.
Is Model Of:
TriangulationVertex Additionally, the class Triangulation_vertex provides the following types, constructors and methods:
See also
Triangulation_full_cell<TriangulationTraits_, Data, TriangulationDSFullCell_>
Triangulation_data_structure<Dimensionality, TriangulationDSVertex_, TriangulationDSFullCell_>
Triangulation<TriangulationTraits_, TriangulationDataStructure_>
Delaunay_triangulation<DelaunayTriangulationTraits_, TriangulationDataStructure_>

Types

typedef TriangulationTraits_::Point_d Point
 The point type. More...
 
typedef Data Data
 The type of the additional data stored in the vertex. More...
 

Creation

template<typename T >
 Triangulation_vertex (Full_cell_handle c, const Point &p, const T &t)
 Constructs a vertex with incident full cell c. More...
 
template<typename T >
 Triangulation_vertex (const Point &p, const T &t)
 Same as above, but without incident full cell. More...
 
 Triangulation_vertex ()
 Same as above, but with default-constructed Point and Data. More...
 

Data access

const Datadata () const
 Returns a const reference to the stored data. More...
 
Datadata ()
 Returns a non-const reference to the stored data. More...
 
std::istream & operator>> (std::istream &is, Triangulation_vertex &v)
 Inputs the non-combinatorial information given by the vertex, i.e., the point and other possible information. More...
 
std::ostream & operator<< (std::ostream &os, const Triangulation_vertex &v)
 Outputs the non-combinatorial information given by the vertex, i.e., the point and other possible information. More...
 

Member Typedef Documentation

◆ Data

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
typedef Data CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::Data

The type of the additional data stored in the vertex.

If you read a Triangulation_vertex from a stream (a file) or write a Triangulation_vertex to a stream, then streaming operators << and >> must be provided for this type.

◆ Point

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
typedef TriangulationTraits_::Point_d CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::Point

The point type.

Constructor & Destructor Documentation

◆ Triangulation_vertex() [1/3]

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
template<typename T >
CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::Triangulation_vertex ( Full_cell_handle  c,
const Point p,
const T &  t 
)

Constructs a vertex with incident full cell c.

The vertex is embedded at point p and the parameter t is passed to the Data constructor.

◆ Triangulation_vertex() [2/3]

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
template<typename T >
CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::Triangulation_vertex ( const Point p,
const T &  t 
)

Same as above, but without incident full cell.

◆ Triangulation_vertex() [3/3]

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::Triangulation_vertex ( )

Same as above, but with default-constructed Point and Data.

Member Function Documentation

◆ data() [1/2]

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
Data& CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::data ( )

Returns a non-const reference to the stored data.

◆ data() [2/2]

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
const Data& CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::data ( ) const

Returns a const reference to the stored data.

◆ operator<<()

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
std::ostream& CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::operator<< ( std::ostream &  os,
const Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ > &  v 
)

Outputs the non-combinatorial information given by the vertex, i.e., the point and other possible information.

The data of type Data is also written.

◆ operator>>()

template<typename TriangulationTraits_ , typename Data , typename TriangulationDSVertex_ >
std::istream& CGAL::Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ >::operator>> ( std::istream &  is,
Triangulation_vertex< TriangulationTraits_, Data, TriangulationDSVertex_ > &  v 
)

Inputs the non-combinatorial information given by the vertex, i.e., the point and other possible information.

The data of type Data is also read.