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

#include <CGAL/property_map.h>

Definition

template<typename T>
struct CGAL::Identity_property_map< T >

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 More...
 
typedef T value_type
 typedef to T More...
 
typedef boost::lvalue_property_map_tag category
 boost::lvalue_property_map_tag More...
 
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& More...
 

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. More...
 

Put/get free functions

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

Member Typedef Documentation

◆ category

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

boost::lvalue_property_map_tag

◆ key_type

template<typename T >
typedef T CGAL::Identity_property_map< T >::key_type

typedef to T

◆ Self

template<typename T >
typedef Identity_property_map<T> CGAL::Identity_property_map< T >::Self

◆ value_type

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

typedef to T

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.

Friends And Related Function Documentation

◆ get

template<typename T >
reference get ( const Self ,
const key_type k 
)
friend

◆ make_identity_property_map()

template<class T >
Identity_property_map< T > make_identity_property_map ( )
related

Free function to create a Identity_property_map property map.

◆ put

template<typename T >
void put ( const Self ,
key_type k,
const value_type v 
)
friend

Member Data Documentation

◆ reference

template<typename T >
const typedef T& CGAL::Identity_property_map< T >::reference

typedef to T&