CGAL 5.1 - 2D Triangulation
CGAL::Constrained_triangulation_plus_2< Tr >::Context Class Reference

#include <CGAL/Constrained_triangulation_plus_2.h>

Definition

template<typename Tr>
class CGAL::Constrained_triangulation_plus_2< Tr >::Context

A context enables the access to the vertices of a constraint that pass through a subconstraint.

Public Member Functions

Constraint_id id () const
 returns the constraint id. More...
 
Vertices_in_constraint_iterator vertices_begin () const
 returns the first vertex of the enclosing constraint. More...
 
Vertices_in_constraint_iterator vertices_end () const
 returns the past-the-end of the vertices of the enclosing constraint. More...
 
Vertices_in_constraint_iterator current () const
 returns the iterator vici of the enclosing constraint for which *vici and *std::next(vici) correspond to the two vertices of the subconstraint. More...
 

Member Function Documentation

◆ current()

template<typename Tr >
Vertices_in_constraint_iterator CGAL::Constrained_triangulation_plus_2< Tr >::Context::current ( ) const

returns the iterator vici of the enclosing constraint for which *vici and *std::next(vici) correspond to the two vertices of the subconstraint.

◆ id()

template<typename Tr >
Constraint_id CGAL::Constrained_triangulation_plus_2< Tr >::Context::id ( ) const

returns the constraint id.

◆ vertices_begin()

template<typename Tr >
Vertices_in_constraint_iterator CGAL::Constrained_triangulation_plus_2< Tr >::Context::vertices_begin ( ) const

returns the first vertex of the enclosing constraint.

◆ vertices_end()

template<typename Tr >
Vertices_in_constraint_iterator CGAL::Constrained_triangulation_plus_2< Tr >::Context::vertices_end ( ) const

returns the past-the-end of the vertices of the enclosing constraint.