CGAL 6.1.2 - Spatial Sorting: CGAL::Spatial_sort_traits_adapter_2< Base_traits, PointPropertyMap > Class Template Reference

CGAL 6.1.2 - Spatial Sorting

Loading...
Searching...
No Matches
List of all members
CGAL::Spatial_sort_traits_adapter_2< Base_traits, PointPropertyMap > Class Template Reference
Reference Manual » Traits Classes

`#include <CGAL/Spatial_sort_traits_adapter_2.h>`

## Inherits from

Base_traits.

## Definition

template<typename Base_traits, typename PointPropertyMap>
class CGAL::Spatial_sort_traits_adapter_2< Base_traits, PointPropertyMap >

Given a property map associating a key to a point, the class `Spatial_sort_traits_adapter_2` 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_2`.

Template Parameters

  Base_traits | must be a model for `SpatialSortingTraits_2`.
  PointPropertyMap | must be a model of `ReadablePropertyMap` with value type `Base_traits::Point_2`.

Is model of
  `SpatialSortingTraits_2`

Examples
  Spatial_sorting/sp_sort_using_property_map_2.cpp.

## Types
typedef boost::property_traits< PointPropertyMap >::key_type | Point_2

## Creation
| Spatial_sort_traits_adapter_2 (Base_traits base=Base_traits())
| Spatial_sort_traits_adapter_2 (const PointPropertyMap &ppmap, Base_traits base=Base_traits())

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