CGAL 5.1 - CGAL and Boost Property Maps
CGAL::First_of_pair_property_map< Pair > Struct Template Reference

#include <CGAL/property_map.h>

Definition

template<typename Pair>
struct CGAL::First_of_pair_property_map< Pair >

Property map that accesses the first item of a std::pair.

Template Parameters
PairInstance of std::pair.
Is Model Of:
LvaluePropertyMap
See also
CGAL::Second_of_pair_property_map<Pair>
Examples
Point_set_processing_3/read_write_xyz_point_set_example.cpp.

Public Types

typedef Pair key_type
 typedef to Pair More...
 
typedef Pair::first_type value_type
 typedef to Pair::first_type More...
 
typedef boost::lvalue_property_map_tag category
 boost::lvalue_property_map_tag More...
 
typedef First_of_pair_property_map< Pair > Self
 

Public Member Functions

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

Public Attributes

const typedef value_typereference
 typedef to value_type& More...
 

Related Functions

(Note that these are not member functions.)

template<class Pair >
First_of_pair_property_map< Pair > make_first_of_pair_property_map (Pair)
 Free function to create a First_of_pair_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 Pair >
typedef boost::lvalue_property_map_tag CGAL::First_of_pair_property_map< Pair >::category

boost::lvalue_property_map_tag

◆ key_type

template<typename Pair >
typedef Pair CGAL::First_of_pair_property_map< Pair >::key_type

typedef to Pair

◆ Self

template<typename Pair >
typedef First_of_pair_property_map<Pair> CGAL::First_of_pair_property_map< Pair >::Self

◆ value_type

template<typename Pair >
typedef Pair::first_type CGAL::First_of_pair_property_map< Pair >::value_type

typedef to Pair::first_type

Member Function Documentation

◆ operator[]()

template<typename Pair >
value_type& CGAL::First_of_pair_property_map< Pair >::operator[] ( key_type pair) const

Access a property map element.

Parameters
paira key whose first item is accessed

Friends And Related Function Documentation

◆ get

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

◆ make_first_of_pair_property_map()

template<class Pair >
First_of_pair_property_map< Pair > make_first_of_pair_property_map ( Pair  )
related

Free function to create a First_of_pair_property_map property map.

◆ put

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

Member Data Documentation

◆ reference

template<typename Pair >
const typedef value_type& CGAL::First_of_pair_property_map< Pair >::reference

typedef to value_type&