\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.5 - dD Spatial Searching
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Search_traits< NT, Point, CartesianIterator, ConstructCartesianIterator, ConstructMinVertex, ConstructMaxVertex > Class Template Reference

#include <CGAL/Search_traits.h>

Definition

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

It is a mere wrapper for the geometric types needed by these classes.

Is Model Of:
SearchTraits
See Also
Search_traits_2<Kernel>
Search_traits_3<Kernel>
Search_traits_d<Kernel>
Examples:
Spatial_searching/user_defined_point_and_distance.cpp.

Types

typedef NT FT
 The number type of the coordinates.
 
typedef Point Point_d
 Point type.
 
typedef CartesianIterator Cartesian_const_iterator_d
 An iterator over the coordinates.
 
typedef ConstructCartesianIterator 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 ConstructMinVertex Construct_min_vertex_d
 Functor with operator to construct the vertex with lexicographically smallest coordinates of an object of type Iso_box_d.
 
typedef Kernel::ConstructMaxVertex Construct_max_vertex_d
 Functor with operator to construct the vertex with lexicographically largest coordinates of an object of type Iso_box_d.
 

Member Typedef Documentation

template<typename NT , typename Point , typename CartesianIterator , typename ConstructCartesianIterator , typename ConstructMinVertex , typename ConstructMaxVertex >
typedef ConstructCartesianIterator CGAL::Search_traits< NT, Point, CartesianIterator, ConstructCartesianIterator, ConstructMinVertex, ConstructMaxVertex >::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.