\( \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.2 - dD Spatial Searching
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Search_traits_adapter< Key, PointPropertyMap, BaseTraits > Class Template Reference

#include <CGAL/Search_traits_adapter.h>

Inherits from

BaseTraits.

Definition

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

When using this traits class in a nearest neighbor search algorithm, the class Distance_adapter<Key,PointPropertyMap,Base_distance> must be used as distance.

Parameters

Key is a type that is associated to a point of type Base_distance::Point_d.

PointPropertyMap is a model of LvaluePropertyMap with Key as key_type and Base_distance::Point_d as value_type.

BaseTraits is a model of either SearchTraits or RangeSearchTraits.

Is Model Of:

SearchTraits if BaseTraits is a model of SearchTraits.

RangeSearchTraits if BaseTraits is a model of RangeSearchTraits.

See Also
Distance_adapter<Key,PointPropertyMap,Base_distance>
Search_traits_2<Kernel>
Search_traits_3<Kernel>
Search_traits_d<Kernel>
Search_traits<Point,CartesianConstIterator,ConstructCartesianConstIterator
Examples:
Spatial_searching/searching_with_point_with_info.cpp, Spatial_searching/searching_with_point_with_info_inplace.cpp, and Spatial_searching/searching_with_point_with_info_pmap.cpp.

Types

Key Point_d
 
BaseTraits::FT FT
 
BaseTraits::Cartesian_const_iterator_d Cartesian_const_iterator_d
 
BaseTraits Base
 

Creation

 Search_traits_adapter (const PointPropertyMap &ppmap=PointPropertyMap(), const BaseTraits &base=BaseTraits())
 Constructor initializing the class to base and setting the point property map of the class to ppmap.
 

Operations

const PointPropertyMap & point_property_map () const
 Returns the point property map.