CGAL 5.1 - CGAL and Boost Property Maps
CGAL::Property_map_to_unary_function< PropertyMap > Struct Template Reference

#include <CGAL/property_map.h>

Definition

template<class PropertyMap>
struct CGAL::Property_map_to_unary_function< PropertyMap >

Struct that turns a property map into a unary functor with operator()(key k) calling the get function with k

Public Types

typedef boost::property_traits< PropertyMap >::key_type argument_type
 
typedef boost::property_traits< PropertyMap >::reference result_type
 

Public Member Functions

 Property_map_to_unary_function (PropertyMap m=PropertyMap())
 
template<class KeyType >
result_type operator() (const KeyType &a) const
 

Public Attributes

PropertyMap map
 

Member Typedef Documentation

◆ argument_type

template<class PropertyMap >
typedef boost::property_traits<PropertyMap>::key_type CGAL::Property_map_to_unary_function< PropertyMap >::argument_type

◆ result_type

template<class PropertyMap >
typedef boost::property_traits<PropertyMap>::reference CGAL::Property_map_to_unary_function< PropertyMap >::result_type

Constructor & Destructor Documentation

◆ Property_map_to_unary_function()

template<class PropertyMap >
CGAL::Property_map_to_unary_function< PropertyMap >::Property_map_to_unary_function ( PropertyMap  m = PropertyMap())

Member Function Documentation

◆ operator()()

template<class PropertyMap >
template<class KeyType >
result_type CGAL::Property_map_to_unary_function< PropertyMap >::operator() ( const KeyType &  a) const

Member Data Documentation

◆ map

template<class PropertyMap >
PropertyMap CGAL::Property_map_to_unary_function< PropertyMap >::map