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

Classes

struct  Input_iterator_property_map
 
struct  Dereference_property_map
 Property map that converts a T* pointer (or in general an iterator over T elements) to the T object. More...
 
struct  Identity_property_map
 A LvaluePropertyMap property map mapping a key to itself (by reference). More...
 
struct  First_of_pair_property_map
 Property map that accesses the first item of a std::pair. More...
 
struct  Second_of_pair_property_map
 Property map that accesses the second item of a std::pair. More...
 
struct  Nth_of_tuple_property_map
 Property map that accesses the Nth item of a boost::tuple or a std::tuple. More...
 
struct  Nth_of_tuple_property_map< N, std::tuple< T...> >
 
struct  Property_map_to_unary_function
 Struct that turns a property map into a unary functor with operator()(key k) calling the get function with k More...
 
struct  Pointer_property_map
 Utility class providing shortcuts to property maps based on raw pointers. More...
 

Functions

template<class Iter >
Index_property_map< Iter > make_index_property_map (Iter first, Iter beyond)
 Free function to create an Index_property_map property map. More...
 
template<class T >
Pointer_property_map< T >::type 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 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 
make_property_map (const T *pointer)
 Non-mutable version.
 
template<class T >
Pointer_property_map< T >
::const_type 
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 Iter >
Index_property_map<Iter> CGAL::make_index_property_map ( Iter  first,
Iter  beyond 
)

Free function to create an Index_property_map property map.

Template Parameters
Iteriterator over input elements.
Returns
an "index" property map, which associates a 0-based index (unsigned int) to the [first, beyond) range of elements.
Parameters
firstiterator over the first element (index 0)
beyondpast-the-end iterator over the elements