CGAL 6.1 - Linear Cell Complex
|
#include <CGAL/Cell_attribute_with_point_and_id.h>
Inherits CGAL::Cell_attribute_with_point< LCC, Info_, Tag, OnMerge, OnSplit >.
The class Cell_attribute_with_point_and_id
represents an attribute containing a point, containing an information when Info_
is different from void
, and having an id.
This class can typically be used to associate a point with id to each 0-cell of a combinatorial or a generalized map.
CellAttributeWithPoint
LCC | a model of the LinearCellComplex concept. |
Info_ | the type of the information contained in the attribute, void for no information. Equal to void by default. |
Tag | is ::Tag_true to enable the storage of a Dart_descriptor of the associated cell, ::Tag_false otherwise. Equal to ::Tag_true by default. |
OnMerge | a functor called when two attributes are merged. Equal to Null_functor by default. |
OnSplit | a functor called when one attribute is split in two. Equal to Null_functor by default. |
CGAL::Linear_cell_complex_for_combinatorial_map<d,d2,LCCTraits,Items,Alloc>
CGAL::Linear_cell_complex_for_generalized_map<d,d2,LCCTraits,Items,Alloc>
Public Member Functions | |
int | id () const |
Returns the index. | |
int & | id () |
Returns the index by reference. | |
Additional Inherited Members | |
![]() | |
typedef LCC::Point | Point |
int & CGAL::Cell_attribute_with_point_and_id< LCC, Info_, Tag, OnMerge, OnSplit >::id | ( | ) |
Returns the index by reference.
int CGAL::Cell_attribute_with_point_and_id< LCC, Info_, Tag, OnMerge, OnSplit >::id | ( | ) | const |
Returns the index.