CGAL 5.3 - CGAL and Boost Property Maps
CGAL::Identity_property_map< T > Struct Template Reference

#include <CGAL/property_map.h>

Definition

A LvaluePropertyMap property map mapping a key to itself (by reference).

Is Model Of:
LvaluePropertyMap
Examples:
Point_set_processing_3/remove_outliers_example.cpp.

Public Types

typedef T key_type
 typedef to T
 
typedef T value_type
 typedef to T
 
typedef boost::lvalue_property_map_tag category
 boost::lvalue_property_map_tag
 
typedef Identity_property_map< T > Self
 

Public Member Functions

value_typeoperator[] (key_type &k) const
 Access a property map element. More...
 

Public Attributes

const typedef T & reference
 typedef to T&
 

Related Functions

(Note that these are not member functions.)

template<class T >
Identity_property_map< T > make_identity_property_map (T)
 Free function to create a Identity_property_map property map.
 

Put/get free functions

reference get (const Self &, const key_type &k)
 
void put (const Self &, key_type &k, const value_type &v)
 

Member Function Documentation

◆ operator[]()

template<typename T >
value_type& CGAL::Identity_property_map< T >::operator[] ( key_type k) const

Access a property map element.

Parameters
ka key which is returned as mapped value.