CGAL 5.1 - dD Spatial Searching
CGAL::Search_traits_2< SearchGeomTraits > Class Template Reference

#include <CGAL/Search_traits_2.h>

Definition

template<typename SearchGeomTraits>
class CGAL::Search_traits_2< SearchGeomTraits >

The class Search_traits_2 can be used as a template parameter of the kd tree and the search classes.

Template Parameters
SearchGeomTraitsmust be a model of the concept SearchGeomTraits_2, for example Simple_cartesian<double> or Simple_cartesian<Gmpq>.
Is Model Of:

SearchTraits

RangeSearchTraits

See also
Search_traits_3<SearchGeomTraits_2>
Search_traits<NT,Point,CartesianConstIterator,ConstructCartesianConstIterator,Dim>
Examples
Spatial_searching/circular_query.cpp, Spatial_searching/distance_browsing.cpp, Spatial_searching/iso_rectangle_2_query.cpp, Spatial_searching/nearest_neighbor_searching.cpp, Spatial_searching/searching_sphere_orthogonally.cpp, Spatial_searching/searching_with_circular_query.cpp, Spatial_searching/splitter_worst_cases.cpp, Spatial_searching/using_fair_splitting_rule.cpp, and Spatial_searching/weighted_Minkowski_distance.cpp.

Types

typedef Dimension_tag< 2 > Dimension
 Dimension type. More...
 
typedef SearchGeomTraits::FT FT
 Number type. More...
 
typedef SearchGeomTraits::Point_2 Point_d
 Point type. More...
 
typedef SearchGeomTraits::Iso_rectangle_2 Iso_box_d
 Iso box type. More...
 
typedef SearchGeomTraits::Circle_2 Sphere_d
 Sphere type. More...
 
typedef SearchGeomTraits::Cartesian_const_iterator_2 Cartesian_const_iterator_d
 An iterator over the Cartesian coordinates. More...
 
typedef SearchGeomTraits::Construct_cartesian_const_iterator_2 Construct_cartesian_const_iterator_d
 A functor with two function operators, which return the begin and past the end iterator for the Cartesian coordinates. More...
 
typedef SearchGeomTraits::Construct_iso_rectangle_2 Construct_iso_box_d
 Functor with operator to construct the iso box from two points. More...
 
typedef SearchGeomTraits::Construct_center_2 Construct_center_d
 Functor with operator to construct the center of an object of type Sphere_d. More...
 
typedef SearchGeomTraits::Compute_squared_radius_2 Compute_squared_radius_d
 Functor with operator to compute the squared radius of a an object of type Sphere_d. More...
 
typedef SearchGeomTraits::Construct_min_vertex_2 Construct_min_vertex_d
 Functor with operator to construct the vertex with lexicographically smallest coordinates of an object of type Iso_box_d. More...
 
typedef SearchGeomTraits::Construct_max_vertex_2 Construct_max_vertex_d
 Functor with operator to construct the vertex with lexicographically largest coordinates of an object of type Iso_box_d. More...
 

Member Typedef Documentation

◆ Cartesian_const_iterator_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Cartesian_const_iterator_2 CGAL::Search_traits_2< SearchGeomTraits >::Cartesian_const_iterator_d

An iterator over the Cartesian coordinates.

◆ Compute_squared_radius_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Compute_squared_radius_2 CGAL::Search_traits_2< SearchGeomTraits >::Compute_squared_radius_d

Functor with operator to compute the squared radius of a an object of type Sphere_d.

◆ Construct_cartesian_const_iterator_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Construct_cartesian_const_iterator_2 CGAL::Search_traits_2< SearchGeomTraits >::Construct_cartesian_const_iterator_d

A functor with two function operators, which return the begin and past the end iterator for the Cartesian coordinates.

The functor for begin has as argument a Point_d. The functor for the past the end iterator, has as argument a Point_d and an int.

◆ Construct_center_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Construct_center_2 CGAL::Search_traits_2< SearchGeomTraits >::Construct_center_d

Functor with operator to construct the center of an object of type Sphere_d.

◆ Construct_iso_box_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Construct_iso_rectangle_2 CGAL::Search_traits_2< SearchGeomTraits >::Construct_iso_box_d

Functor with operator to construct the iso box from two points.

◆ Construct_max_vertex_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Construct_max_vertex_2 CGAL::Search_traits_2< SearchGeomTraits >::Construct_max_vertex_d

Functor with operator to construct the vertex with lexicographically largest coordinates of an object of type Iso_box_d.

◆ Construct_min_vertex_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Construct_min_vertex_2 CGAL::Search_traits_2< SearchGeomTraits >::Construct_min_vertex_d

Functor with operator to construct the vertex with lexicographically smallest coordinates of an object of type Iso_box_d.

◆ Dimension

template<typename SearchGeomTraits >
typedef Dimension_tag<2> CGAL::Search_traits_2< SearchGeomTraits >::Dimension

Dimension type.

◆ FT

template<typename SearchGeomTraits >
typedef SearchGeomTraits::FT CGAL::Search_traits_2< SearchGeomTraits >::FT

Number type.

◆ Iso_box_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Iso_rectangle_2 CGAL::Search_traits_2< SearchGeomTraits >::Iso_box_d

Iso box type.

◆ Point_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Point_2 CGAL::Search_traits_2< SearchGeomTraits >::Point_d

Point type.

◆ Sphere_d

template<typename SearchGeomTraits >
typedef SearchGeomTraits::Circle_2 CGAL::Search_traits_2< SearchGeomTraits >::Sphere_d

Sphere type.