\( \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 4.10.2 - CGAL and Boost Property Maps
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL and Boost Property Maps Reference

property_map.png
Andreas Fabri and Laurent Saboret
This package provides a framework for interfacing CGAL data structures with algorithms expecting Boost Property Maps.


Introduced in: CGAL 3.5
BibTeX: cgal:fs-cbpm-18a
License: LGPL

Classes

struct  CGAL::Dereference_property_map< T >
 Property map that converts a T* pointer (or in general an iterator over T elements) to the T object. More...
 
struct  CGAL::Identity_property_map< T >
 A LvaluePropertyMap property map mapping a key to itself (by reference). More...
 
struct  CGAL::First_of_pair_property_map< Pair >
 Property map that accesses the first item of a std::pair. More...
 
struct  CGAL::Second_of_pair_property_map< Pair >
 Property map that accesses the second item of a std::pair. More...
 
struct  CGAL::Nth_of_tuple_property_map< N, Tuple >
 Property map that accesses the Nth item of a boost::tuple or a std::tuple. More...
 
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 More...
 
struct  CGAL::Pointer_property_map< T >
 Utility class providing shortcuts to property maps based on raw pointers. More...
 

Functions

template<class T >
Pointer_property_map< T >::type CGAL::make_property_map (T *pointer)
 Starting from boost 1.55, the use of raw pointers as property maps has been deprecated. More...
 
template<class T >
Pointer_property_map< T >::type CGAL::make_property_map (std::vector< T > &v)
 equivalent to make_property_map(&v[0]) Note that v must not be modified while using the property map created
 
template<class T >
Pointer_property_map< T >
::const_type 
CGAL::make_property_map (const T *pointer)
 Non-mutable version.
 
template<class T >
Pointer_property_map< T >
::const_type 
CGAL::make_property_map (const std::vector< T > &v)
 equivalent to make_property_map(&v[0]) Note that v must not be modified while using the property map created
 

Function Documentation

template<class T >
Pointer_property_map<T>::type CGAL::make_property_map ( T *  pointer)

Starting from boost 1.55, the use of raw pointers as property maps has been deprecated.

This function is a shortcut to the recommanded replacement: boost::make_iterator_property_map(<pointer>, boost::typed_identity_property_map<std::size_t>()) Note that the property map is a mutable LvaluePropertyMap with std::size_t as key.

#include <CGAL/property_map.h>