\( \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.6.2 - CGAL and Boost Property Maps
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Nth_of_tuple_property_map< N, Tuple > Struct Template Reference

#include <CGAL/property_map.h>

Definition

Property map that accesses the Nth item of a boost::tuple.

Template Parameters
NIndex of the item to access.
TupleInstance of boost::tuple.
Is Model Of:
LvaluePropertyMap
Examples:
Point_set_processing_3/average_spacing_example.cpp, and Point_set_processing_3/property_map.cpp.

Public Types

typedef Tuple key_type
 typedef to Tuple
 
typedef boost::tuples::element
< N, Tuple >::type 
value_type
 typedef to boost::tuples::element<N,Tuple>::type
 
typedef value_typereference
 typedef to value_type&
 
typedef
boost::lvalue_property_map_tag 
category
 boost::lvalue_property_map_tag
 
typedef
Nth_of_tuple_property_map< N,
Tuple > 
Self
 

Public Member Functions

reference operator[] (key_type &tuple) const
 Access a property map element. More...
 

Related Functions

(Note that these are not member functions.)

template<int N, class Tuple >
Nth_of_tuple_property_map< N,
Tuple > 
make_nth_of_tuple_property_map (Tuple)
 Free function to create a Nth_of_tuple_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<int N, typename Tuple >
reference CGAL::Nth_of_tuple_property_map< N, Tuple >::operator[] ( key_type tuple) const

Access a property map element.

Parameters
tuplea key whose Nth item is accessed