CGAL 6.2 - CGAL and Boost Property Maps

Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions | Related Functions
CGAL::Nth_of_tuple_property_map< N, Tuple > Struct Template Reference
Reference Manual

`#include <CGAL/property_map.h>`

## Definition

template<int N, typename Tuple>
struct CGAL::Nth_of_tuple_property_map< N, Tuple >

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

Template Parameters

  N | Index of the item to access.
  Tuple | Instance of `boost::tuple` or `std::tuple`.

Is model of
  `LvaluePropertyMap`

Examples
  Point_set_processing_3/average_spacing_example.cpp.

## Public Types
typedef Nth_of_tuple_property_map< N, Tuple > | Self
typedef Tuple | key_type
| typedef to `Tuple`
typedef unspecified_type | value_type
| typedef to the N-th type of the tuple
typedef const value_type & | reference
| typedef to `const value_type&`
typedef boost::lvalue_property_map_tag | category
| `boost::lvalue_property_map_tag`

## Public Member Functions
const value_type & | operator[] (const key_type &tuple) const
| Access a property map element.

## 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
reference | get (const Self &, const key_type &k)
void | put (const Self &, key_type &k, const value_type &v)

## Member Function Documentation

## ◆ operator[]()

template<int N, typename Tuple >

const value_type & CGAL::Nth_of_tuple_property_map< N, Tuple >::operator[] | ( | const key_type & | tuple | ) | const

Access a property map element.

Parameters

  tuple | a key whose Nth item is accessed