\( \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.5.2 - CGAL and Boost Property Maps
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
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 T & reference
 typedef to T&
 
typedef
boost::lvalue_property_map_tag 
category
 boost::lvalue_property_map_tag
 
typedef Identity_property_map< T > Self
 

Public Member Functions

reference operator[] (key_type &k) const
 Access a property map element. 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.
 

Put/get free functions

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

Member Function Documentation

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

Access a property map element.

Parameters
ka key which is returned as mapped value.