CGAL 5.1 - 2D Triangulation
CGAL::Triangulation_face_base_with_info_2< Info, Traits, Fb > Class Template Reference

#include <CGAL/Triangulation_face_base_with_info_2.h>

Inherits Fb.

Definition

template<typename Info, typename Traits, typename Fb>
class CGAL::Triangulation_face_base_with_info_2< Info, Traits, Fb >

The class Triangulation_face_base_with_info_2 is a model of the concept TriangulationFaceBase_2 to be plugged into the triangulation data structure of a triangulation class. It provides an easy way to add some user defined information in the faces of a triangulation.

Template Parameters
Infois the information the user would like to add to a face. It has to be DefaultConstructible and Assignable.
Traitsis a geometric traits class and is actually not used in Triangulation_face_base_with_info_2 .
Fbis a face base class from which Triangulation_face_base_with_info_2 derives.
Is Model Of:
Because Triangulation_face_base_with_info_2 derives from the class instantiating its third parameter, it will be a model of the same face base concept as its parameter: TriangulationFaceBase_2, ConstrainedTriangulationFaceBase_2, or RegularTriangulationFaceBase_2
See also
CGAL::Triangulation_face_base_2<Traits,Fb>
CGAL::Constrained_triangulation_face_base_2<Traits,Fb>
CGAL::Regular_triangulation_face_base_2<Traits,Fb>
Examples
Triangulation_2/colored_face.cpp, and Triangulation_2/polygon_triangulation.cpp.

Types

typedef Info Info
 

Access Functions

const Infoinfo () const
 Returns a const reference to the object of type Info stored in the face. More...
 
Infoinfo ()
 Returns a reference to the object of type Info stored in the face. More...
 

Member Typedef Documentation

◆ Info

template<typename Info , typename Traits , typename Fb >
typedef Info CGAL::Triangulation_face_base_with_info_2< Info, Traits, Fb >::Info

Member Function Documentation

◆ info() [1/2]

template<typename Info , typename Traits , typename Fb >
Info& CGAL::Triangulation_face_base_with_info_2< Info, Traits, Fb >::info ( )

Returns a reference to the object of type Info stored in the face.

◆ info() [2/2]

template<typename Info , typename Traits , typename Fb >
const Info& CGAL::Triangulation_face_base_with_info_2< Info, Traits, Fb >::info ( ) const

Returns a const reference to the object of type Info stored in the face.