|
CGAL 6.1.3 - Combinatorial Maps
|
The concept GenericMapItems allows to customize a dD generic map by choosing the information associated with darts, by enabling and disabling some attributes, and by choosing to use indices or handles. For that, it defines an inner class template named Dart_wrapper, with one template parameter, Map, a model of the GenericMap concept. This inner class can define the two types Dart_info and Attributes.
Example
The following examples show two possible models of the GenericMapItems concept: the first one for a generic map without dart information, nor enabled attributes, the second one for a generic map that uses std::uint16_t as indices, with a double associated with each dart, and edge attributes enabled, and associated with a Cell_attribute containing an int.
Public Types | |
| typedef unspecified_type | Use_index |
| If Use_index is CGAL::Tag_true, uses indices as descriptors. | |
| typedef unspecified_type | Index_type |
| Number type used for indices when Use_index is CGAL::Tag_true. | |
| template<typename Map> | |
| using | Dart_wrapper = unspecified_type |
| Wrapper class defining type of information associated with darts and types of attributes. | |
| using GenericMapItems::Dart_wrapper = unspecified_type |
Wrapper class defining type of information associated with darts and types of attributes.
The class Dart_wrapper<Map> must provide:
Number type used for indices when Use_index is CGAL::Tag_true.
By default, use std::uint32_t.
If Use_index is CGAL::Tag_true, uses indices as descriptors.
Otherwise (if this type is not defined or different from CGAL::Tag_true), use handles.
#include <Concepts/GenericMapItems.h>
The concept GenericMapItems allows to customize a dD generic map by choosing the information associated with darts, by enabling and disabling some attributes, and by choosing to use indices or handles. For that, it defines an inner class template named Dart_wrapper, with one template parameter, Map, a model of the GenericMap concept. This inner class can define the two types Dart_info and Attributes.
Example
The following examples show two possible models of the GenericMapItems concept: the first one for a generic map without dart information, nor enabled attributes, the second one for a generic map that uses std::uint16_t as indices, with a double associated with each dart, and edge attributes enabled, and associated with a Cell_attribute containing an int.
Public Types | |
| typedef unspecified_type | Use_index |
| If Use_index is CGAL::Tag_true, uses indices as descriptors. | |
| typedef unspecified_type | Index_type |
| Number type used for indices when Use_index is CGAL::Tag_true. | |
| template<typename Map> | |
| using | Dart_wrapper = unspecified_type |
| Wrapper class defining type of information associated with darts and types of attributes. | |
| using GenericMapItems::Dart_wrapper = unspecified_type |
Wrapper class defining type of information associated with darts and types of attributes.
The class Dart_wrapper<Map> must provide:
Number type used for indices when Use_index is CGAL::Tag_true.
By default, use std::uint32_t.
If Use_index is CGAL::Tag_true, uses indices as descriptors.
Otherwise (if this type is not defined or different from CGAL::Tag_true), use handles.