From 977876ca48639fe8f3d60e83389db6a128ae59ea Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Wed, 19 Apr 2017 14:12:39 -0400 Subject: [PATCH] Replace class by template alias. --- ...r_cell_complex_for_bgl_combinatorial_map.h | 102 +----------------- 1 file changed, 3 insertions(+), 99 deletions(-) diff --git a/Linear_cell_complex/include/CGAL/Linear_cell_complex_for_bgl_combinatorial_map.h b/Linear_cell_complex/include/CGAL/Linear_cell_complex_for_bgl_combinatorial_map.h index 78dd0f712c0..45d24199c58 100644 --- a/Linear_cell_complex/include/CGAL/Linear_cell_complex_for_bgl_combinatorial_map.h +++ b/Linear_cell_complex/include/CGAL/Linear_cell_complex_for_bgl_combinatorial_map.h @@ -56,106 +56,10 @@ namespace CGAL { class Storage_ = CMap_linear_cell_complex_storage_1 > - class Linear_cell_complex_for_bgl_combinatorial_map: - public Linear_cell_complex_for_combinatorial_map + using Linear_cell_complex_for_bgl_combinatorial_map= + Linear_cell_complex_for_combinatorial_map - { - public: - typedef Linear_cell_complex_for_bgl_combinatorial_map Self; - - typedef Linear_cell_complex_for_combinatorial_map Base; - - typedef Traits_ Traits; - typedef Items_ Items; - typedef Alloc_ Alloc; - - static const unsigned int ambient_dimension = Base::ambient_dimension; - static const unsigned int dimension = Base::dimension; - - typedef typename Base::Dart_handle Dart_handle; - typedef typename Base::Dart_const_handle Dart_const_handle; - typedef typename Base::Helper Helper; - - typedef typename Base::Point Point; - typedef typename Base::Vector Vector; - typedef typename Base::FT FT; - - typedef typename Base::Dart_range Dart_range; - - typedef typename Base::template Attribute_type<0>::type Vertex_attribute; - typedef typename Base::template Attribute_handle<0>::type - Vertex_attribute_handle; - typedef typename Base::template Attribute_const_handle<0>::type - Vertex_attribute_const_handle; - - typedef typename Base::template Attribute_range<0>::type - Vertex_attribute_range; - typedef typename Base::template Attribute_const_range<0>::type - Vertex_attribute_const_range; - - typedef typename Base::template Attribute_type<2>::type Face_attribute; - typedef typename Base::template Attribute_handle<2>::type - Face_attribute_handle; - typedef typename Base::template Attribute_const_handle<2>::type - Face_attribute_const_handle; - - typedef typename Base::template Attribute_range<2>::type - Face_attribute_range; - typedef typename Base::template Attribute_const_range<2>::type - Face_attribute_const_range; - - typedef typename Base::size_type size_type; - - typedef typename Base::Use_index Use_index; - typedef typename Base::Storage Storage; - typedef typename Base::Exception_no_more_available_mark - Exception_no_more_available_mark; - - Linear_cell_complex_for_bgl_combinatorial_map() : Base() - {} - - /** Copy the given linear cell complex into *this. - * Note that both LCC can have different dimensions and/or non void attributes. - * @param alcc the linear cell complex to copy. - * @post *this is valid. - */ - Linear_cell_complex_for_bgl_combinatorial_map(const Self& alcc) : Base(alcc) - {} - - template < class LCC2 > - Linear_cell_complex_for_bgl_combinatorial_map(const LCC2& alcc) : Base(alcc) - {} - - template < class LCC2, typename Converters > - Linear_cell_complex_for_bgl_combinatorial_map(const LCC2& alcc, - Converters& converters) : - Base(alcc, converters) - {} - - template < class LCC2, typename Converters, typename DartInfoConverter > - Linear_cell_complex_for_bgl_combinatorial_map(const LCC2& alcc, - Converters& converters, - const DartInfoConverter& - dartinfoconverter) : - Base(alcc, converters, dartinfoconverter) - {} - - template < class LCC2, typename Converters, typename DartInfoConverter, - typename PointConverter > - Linear_cell_complex_for_bgl_combinatorial_map(const LCC2& alcc, - Converters& converters, - const DartInfoConverter& - dartinfoconverter, - const PointConverter& - pointconverter) : - Base(alcc, converters, dartinfoconverter, pointconverter) - {} - - }; - + Items_, Alloc_, CMap, Storage_>; } // namespace CGAL #endif // CGAL_LINEAR_CELL_COMPLEX_FOR_BGL_COMBINATORIAL_MAP_H //