CGAL 5.1 - CGAL and Boost Property Maps
CGAL::Cartesian_converter_property_map< GeomObject, Vpm > Struct Template Reference

#include <CGAL/property_map.h>

Definition

template<class GeomObject, class Vpm>
struct CGAL::Cartesian_converter_property_map< GeomObject, Vpm >

Read-write property map doing on-the-fly conversions between two default constructible CGAL Cartesian kernels. Its value type is GeomObject and its key type is the same as Vpm. GeomObject must be a geometric object from a CGAL kernel. Vpm is a model of ReadWritePropertyMap and its value type must be a geometric object of the same type as GeomObject but possibly from another kernel. Conversions between the two geometric objects are done using Cartesian_converter.

Is Model Of:
ReadWritePropertyMap

Public Types

typedef boost::property_traits< Vpm >::key_type key_type
 
typedef GeomObject value_type
 
typedef value_type reference
 
typedef boost::read_write_property_map_tag category
 
typedef Kernel_traits< GeomObject >::type K2
 
typedef Kernel_traits< typename boost::property_traits< Vpm >::value_type >::type K1
 

Public Member Functions

 Cartesian_converter_property_map (Vpm vpm)
 

Public Attributes

Vpm vpm
 

Friends

value_type get (const Cartesian_converter_property_map< GeomObject, Vpm > &pm, const key_type &k)
 
void put (Cartesian_converter_property_map< GeomObject, Vpm > &pm, const key_type &k, const value_type &v)
 

Member Typedef Documentation

◆ category

template<class GeomObject , class Vpm >
typedef boost::read_write_property_map_tag CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::category

◆ K1

template<class GeomObject , class Vpm >
typedef Kernel_traits<typename boost::property_traits<Vpm>::value_type>::type CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::K1

◆ K2

template<class GeomObject , class Vpm >
typedef Kernel_traits<GeomObject>::type CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::K2

◆ key_type

template<class GeomObject , class Vpm >
typedef boost::property_traits<Vpm>::key_type CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::key_type

◆ reference

template<class GeomObject , class Vpm >
typedef value_type CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::reference

◆ value_type

template<class GeomObject , class Vpm >
typedef GeomObject CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::value_type

Constructor & Destructor Documentation

◆ Cartesian_converter_property_map()

template<class GeomObject , class Vpm >
CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::Cartesian_converter_property_map ( Vpm  vpm)

Friends And Related Function Documentation

◆ get

template<class GeomObject , class Vpm >
value_type get ( const Cartesian_converter_property_map< GeomObject, Vpm > &  pm,
const key_type k 
)
friend

◆ put

template<class GeomObject , class Vpm >
void put ( Cartesian_converter_property_map< GeomObject, Vpm > &  pm,
const key_type k,
const value_type v 
)
friend

Member Data Documentation

◆ vpm

template<class GeomObject , class Vpm >
Vpm CGAL::Cartesian_converter_property_map< GeomObject, Vpm >::vpm