CGAL::Spatial_sort_traits_adapter_2<Base_traits,PointPropertyMap>
Definition
Given a property map associating a key to a point, the class Spatial_sort_traits_adapter_2<Base_traits,PointPropertyMap> 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.
Requirements
Base_traits is a model for SpatialSortingTraits_2.
PointPropertyMap is a model of boost::ReadablePropertyMap
with Base_traits::Point_2 as value_type.
Inherits From
Base_traits
Is Model for the Concepts
SpatialSortingTraits_2
Types
boost::property_traits<PointPropertyMap>::key_type
|
|
Point_2;
|
Creation
Spatial_sort_traits_adapter_2<Base_traits,PointPropertyMap> o ( Base_traits base=Base_traits());
|
|
Spatial_sort_traits_adapter_2<Base_traits,PointPropertyMap> o ( const PointPropertyMap& ppmap, Base_traits base=Base_traits());
|
Operations
const PointPropertyMap&
|
o.point_property_map () const
|
Returns a const reference to the point property map.
|