\( \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 5.0.1 - CGAL and Boost Property Maps
CGAL::Constant_property_map< KeyType, ValueType > Struct Template Reference

#include <CGAL/property_map.h>

Definition

Property map that returns a fixed value.

Note that this value is chosen when the map is constructed and cannot be changed afterwards. Specifically, the free function put() does nothing.

Is Model Of:
ReadWritePropertyMap

Public Types

typedef KeyType key_type
 
typedef ValueType value_type
 
typedef value_typereference
 
typedef boost::read_write_property_map_tag category
 

Public Member Functions

 Constant_property_map (const value_type &default_value=value_type())
 

Public Attributes

ValueType default_value
 

Friends

value_type get (const Constant_property_map &pm, const key_type &)
 Free function that returns pm.default_value.
 
void put (const Constant_property_map &, const key_type &, const value_type &)
 Free function that does nothing.