CGAL 5.1 - CGAL and Boost Property Maps
CGAL::Dereference_property_map< T > Struct Template Reference

#include <CGAL/property_map.h>

Inherits put_get_helper< T &, Dereference_property_map< T > >.

Definition

template<typename T>
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.

Is Model Of:
LvaluePropertyMap

Public Types

typedef T * key_type
 typedef to 'T*' More...
 
typedef T value_type
 typedef to 'T' More...
 
typedef boost::lvalue_property_map_tag category
 boost::lvalue_property_map_tag More...
 

Public Member Functions

template<class Iter >
value_typeoperator[] (Iter it) const
 Access a property map element. More...
 

Public Attributes

const typedef value_typereference
 typedef to 'T&' More...
 

Related Functions

(Note that these are not member functions.)

template<class Iter >
Dereference_property_map< typename CGAL::value_type_traits< Iter >::type > make_dereference_property_map (Iter)
 Free function to create a Dereference_property_map property map. More...
 

Member Typedef Documentation

◆ category

template<typename T >
typedef boost::lvalue_property_map_tag CGAL::Dereference_property_map< T >::category

boost::lvalue_property_map_tag

◆ key_type

template<typename T >
typedef T* CGAL::Dereference_property_map< T >::key_type

typedef to 'T*'

◆ value_type

template<typename T >
typedef T CGAL::Dereference_property_map< T >::value_type

typedef to 'T'

Member Function Documentation

◆ operator[]()

template<typename T >
template<class Iter >
value_type& CGAL::Dereference_property_map< T >::operator[] ( Iter  it) const

Access a property map element.

Template Parameters
IterType convertible to key_type.

Friends And Related Function Documentation

◆ make_dereference_property_map()

template<class Iter >
Dereference_property_map< typename CGAL::value_type_traits< Iter >::type > make_dereference_property_map ( Iter  )
related

Free function to create a Dereference_property_map property map.

Member Data Documentation

◆ reference

template<typename T >
const typedef value_type& CGAL::Dereference_property_map< T >::reference

typedef to 'T&'