\( \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 5.0.1 - Spatial Sorting
CGAL::Spatial_sort_traits_adapter_3< Base_traits, PointPropertyMap > Class Template Reference

#include <CGAL/Spatial_sort_traits_adapter_3.h>

Inherits from

Base_traits.

Definition

Given a property map associating a key to a point, the class Spatial_sort_traits_adapter_3 induces a spatial reorder of the keys instead of the points, the comparisons being done on the associated points.

In other words, the traits provides to a spatial sort algorithm a point type which is a key, while the actual point type is Base_traits::Point_3.

Template Parameters
Base_traitsmust be a model for SpatialSortingTraits_3.
PointPropertyMapmust be a model of ReadablePropertyMap with value type Base_traits::Point_3.
Is Model Of:
SpatialSortingTraits_3
Examples:
Spatial_sorting/sp_sort_using_property_map_3.cpp.

Types

boost::property_traits< PointPropertyMap >::key_type Point_3
 

Creation

 Spatial_sort_traits_adapter_3 (Base_traits base=Base_traits())
 
 Spatial_sort_traits_adapter_3 (const PointPropertyMap &ppmap, Base_traits base=Base_traits())
 

Operations

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