From 7865ef2cc4abd972b2ba1eb50790912820fa2ee2 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Tue, 25 Sep 2018 16:05:33 +0000 Subject: clang-format all files Add safe version alpha complex 3d persistence utility git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alpha_complex_3d_module_vincent@3907 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 54b2d0de9231511864df9fa637b60b7ccf34f50f --- src/Alpha_complex/include/gudhi/Alpha_complex_3d.h | 365 ++++++++++----------- .../include/gudhi/Alpha_complex_options.h | 10 +- 2 files changed, 172 insertions(+), 203 deletions(-) (limited to 'src/Alpha_complex/include/gudhi') diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h index 1ba52ad0..0333abbd 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h @@ -55,14 +55,12 @@ #include #include #include -#include // for std::unique_ptr +#include // for std::unique_ptr #include // for std::conditional and std::enable_if - #if CGAL_VERSION_NR < 1041101000 - // Make compilation fail - required for external projects - https://gitlab.inria.fr/GUDHI/gudhi-devel/issues/10 - static_assert(false, - "Alpha_complex_3d is only available for CGAL >= 4.11"); +// Make compilation fail - required for external projects - https://gitlab.inria.fr/GUDHI/gudhi-devel/issues/10 +static_assert(false, "Alpha_complex_3d is only available for CGAL >= 4.11"); #endif namespace Gudhi { @@ -75,39 +73,32 @@ namespace alpha_complex { // *iterator CGAL::to_double(*iterator) CGAL::to_double(iterator->exact()) template -struct Value_from_iterator -{ - template - static double perform(Iterator it) - { +struct Value_from_iterator { + template + static double perform(Iterator it) { // Default behaviour is to return the value pointed by the given iterator return *it; } }; template <> -struct Value_from_iterator -{ - template - static double perform(Iterator it) - { +struct Value_from_iterator { + template + static double perform(Iterator it) { // In SAFE mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true. return CGAL::to_double(*it); } }; template <> -struct Value_from_iterator -{ - template - static double perform(Iterator it) - { +struct Value_from_iterator { + template + static double perform(Iterator it) { // In EXACT mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true. return CGAL::to_double(it->exact()); } }; - /** * \class Alpha_complex_3d * \brief Alpha complex data structure for 3d specific case. @@ -143,7 +134,7 @@ struct Value_from_iterator * 3d Delaunay complex. * */ -template +template class Alpha_complex_3d { // Epick = Exact_predicates_inexact_constructions_kernel // Epeck = Exact_predicates_exact_constructions_kernel @@ -159,89 +150,85 @@ class Alpha_complex_3d { // // otherwise Epick + CGAL::Tag_false Epeck Epeck using Predicates = typename std::conditional<((!Weighted && !Periodic) || (Complexity == complexity::FAST)), - CGAL::Exact_predicates_inexact_constructions_kernel, - CGAL::Exact_predicates_exact_constructions_kernel>::type; + CGAL::Exact_predicates_inexact_constructions_kernel, + CGAL::Exact_predicates_exact_constructions_kernel>::type; // The other way to do a conditional type. Here there are 3 possibilities - template struct Kernel_3 {}; + template + struct Kernel_3 {}; - template < typename Predicates > + template struct Kernel_3 { using Kernel = Predicates; }; - template < typename Predicates > + template struct Kernel_3 { using Kernel = Predicates; }; - template < typename Predicates > + template struct Kernel_3 { using Kernel = CGAL::Periodic_3_Delaunay_triangulation_traits_3; }; - template < typename Predicates > + template struct Kernel_3 { using Kernel = CGAL::Periodic_3_regular_triangulation_traits_3; }; using Kernel = typename Kernel_3::Kernel; - using Exact_tag = typename std::conditional<(Complexity == complexity::FAST), - CGAL::Tag_false, - CGAL::Tag_true>::type; + using Exact_tag = typename std::conditional<(Complexity == complexity::FAST), CGAL::Tag_false, CGAL::Tag_true>::type; - using TdsVb = typename std::conditional, - CGAL::Triangulation_ds_vertex_base_3<>>::type; + using TdsVb = typename std::conditional, + CGAL::Triangulation_ds_vertex_base_3<>>::type; - using Tvb = typename std::conditional, - CGAL::Triangulation_vertex_base_3>::type; + using Tvb = typename std::conditional, + CGAL::Triangulation_vertex_base_3>::type; using Vb = CGAL::Alpha_shape_vertex_base_3; - using TdsCb = typename std::conditional, - CGAL::Triangulation_ds_cell_base_3<>>::type; + using TdsCb = typename std::conditional, + CGAL::Triangulation_ds_cell_base_3<>>::type; - using Tcb = typename std::conditional, - CGAL::Triangulation_cell_base_3>::type; + using Tcb = typename std::conditional, + CGAL::Triangulation_cell_base_3>::type; using Cb = CGAL::Alpha_shape_cell_base_3; using Tds = CGAL::Triangulation_data_structure_3; // The other way to do a conditional type. Here there 4 possibilities, cannot use std::conditional - template struct Triangulation {}; + template + struct Triangulation {}; - template < typename Kernel, typename Tds > + template struct Triangulation { using Triangulation_3 = CGAL::Delaunay_triangulation_3; }; - template < typename Kernel, typename Tds > + template struct Triangulation { using Triangulation_3 = CGAL::Regular_triangulation_3; }; - template < typename Kernel, typename Tds > + template struct Triangulation { using Triangulation_3 = CGAL::Periodic_3_Delaunay_triangulation_3; }; - template < typename Kernel, typename Tds > + template struct Triangulation { using Triangulation_3 = CGAL::Periodic_3_regular_triangulation_3; }; -public: + public: using Triangulation_3 = typename Triangulation::Triangulation_3; using Alpha_shape_3 = CGAL::Alpha_shape_3; using Point_3 = typename Kernel::Point_3; -private: + private: using Alpha_value_type = typename Alpha_shape_3::FT; using Dispatch = - CGAL::Dispatch_output_iterator, - CGAL::cpp11::tuple >, - std::back_insert_iterator > > >; + CGAL::Dispatch_output_iterator, + CGAL::cpp11::tuple>, + std::back_insert_iterator>>>; using Cell_handle = typename Alpha_shape_3::Cell_handle; using Facet = typename Alpha_shape_3::Facet; @@ -253,46 +240,43 @@ private: using Vertex_list = std::vector; #endif -public: + public: /** \brief Alpha_complex constructor from a list of points. - * - * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` or - * `Alpha_complex_3d::Triangulation_3::Weighted_point`. - * - * @pre Available if Alpha_complex_3d is not Periodic. - * - * The type InputPointRange must be a range for which std::begin and std::end return input iterators on a - * `Alpha_complex_3d::Point_3` or a `Alpha_complex_3d::Triangulation_3::Weighted_point`. - */ - template + * + * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` or + * `Alpha_complex_3d::Triangulation_3::Weighted_point`. + * + * @pre Available if Alpha_complex_3d is not Periodic. + * + * The type InputPointRange must be a range for which std::begin and std::end return input iterators on a + * `Alpha_complex_3d::Point_3` or a `Alpha_complex_3d::Triangulation_3::Weighted_point`. + */ + template Alpha_complex_3d(const InputPointRange& points) { - static_assert(!Periodic, - "This constructor is not available for periodic versions of Alpha_complex_3d"); + static_assert(!Periodic, "This constructor is not available for periodic versions of Alpha_complex_3d"); - alpha_shape_3_ptr_ = std::unique_ptr(new Alpha_shape_3(std::begin(points), std::end(points), 0, - Alpha_shape_3::GENERAL)); + alpha_shape_3_ptr_ = std::unique_ptr( + new Alpha_shape_3(std::begin(points), std::end(points), 0, Alpha_shape_3::GENERAL)); } /** \brief Alpha_complex constructor from a list of points and associated weights. - * - * @exception std::invalid_argument In debug mode, if points and weights do not have the same size. - * - * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` - * @param[in] weights Range of weights on points. Weights shall be in `Alpha_complex_3d::Alpha_shape_3::FT` - * - * @pre Available if Alpha_complex_3d is Weighted and not Periodic. - * - * The type InputPointRange must be a range for which std::begin and - * std::end return input iterators on a `Alpha_complex_3d::Point_3`. - * The type WeightRange must be a range for which std::begin and - * std::end return an input iterator on a `Alpha_complex_3d::Alpha_shape_3::FT`. - */ - template + * + * @exception std::invalid_argument In debug mode, if points and weights do not have the same size. + * + * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` + * @param[in] weights Range of weights on points. Weights shall be in `Alpha_complex_3d::Alpha_shape_3::FT` + * + * @pre Available if Alpha_complex_3d is Weighted and not Periodic. + * + * The type InputPointRange must be a range for which std::begin and + * std::end return input iterators on a `Alpha_complex_3d::Point_3`. + * The type WeightRange must be a range for which std::begin and + * std::end return an input iterator on a `Alpha_complex_3d::Alpha_shape_3::FT`. + */ + template Alpha_complex_3d(const InputPointRange& points, WeightRange weights) { - static_assert(Weighted, - "This constructor is not available for non-weighted versions of Alpha_complex_3d"); - static_assert(!Periodic, - "This constructor is not available for periodic versions of Alpha_complex_3d"); + static_assert(Weighted, "This constructor is not available for non-weighted versions of Alpha_complex_3d"); + static_assert(!Periodic, "This constructor is not available for periodic versions of Alpha_complex_3d"); GUDHI_CHECK((weights.size() == points.size()), std::invalid_argument("Points number in range different from weights range number")); @@ -306,44 +290,39 @@ public: index++; } - alpha_shape_3_ptr_ = std::unique_ptr(new Alpha_shape_3(std::begin(weighted_points_3), - std::end(weighted_points_3), - 0, - Alpha_shape_3::GENERAL)); + alpha_shape_3_ptr_ = std::unique_ptr( + new Alpha_shape_3(std::begin(weighted_points_3), std::end(weighted_points_3), 0, Alpha_shape_3::GENERAL)); } /** \brief Alpha_complex constructor from a list of points and an iso-cuboid coordinates. - * - * @exception std::invalid_argument In debug mode, if the size of the cuboid in every directions is not the same. - * - * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` or - * `Alpha_complex_3d::Triangulation_3::Weighted_point`. - * @param[in] x_min Iso-oriented cuboid x_min. - * @param[in] y_min Iso-oriented cuboid y_min. - * @param[in] z_min Iso-oriented cuboid z_min. - * @param[in] x_max Iso-oriented cuboid x_max. - * @param[in] y_max Iso-oriented cuboid y_max. - * @param[in] z_max Iso-oriented cuboid z_max. - * - * @pre Available if Alpha_complex_3d is Periodic. - * - * The type InputPointRange must be a range for which std::begin and std::end return input iterators on a - * `Alpha_complex_3d::Point_3` or a `Alpha_complex_3d::Triangulation_3::Weighted_point`. - * - * @note In weighted version, please check weights are greater than zero, and lower than 1/64*cuboid length - * squared. - */ - template - Alpha_complex_3d(const InputPointRange& points, - Alpha_value_type x_min, Alpha_value_type y_min, Alpha_value_type z_min, - Alpha_value_type x_max, Alpha_value_type y_max, Alpha_value_type z_max) { - static_assert(Periodic, - "This constructor is not available for non-periodic versions of Alpha_complex_3d"); + * + * @exception std::invalid_argument In debug mode, if the size of the cuboid in every directions is not the same. + * + * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` or + * `Alpha_complex_3d::Triangulation_3::Weighted_point`. + * @param[in] x_min Iso-oriented cuboid x_min. + * @param[in] y_min Iso-oriented cuboid y_min. + * @param[in] z_min Iso-oriented cuboid z_min. + * @param[in] x_max Iso-oriented cuboid x_max. + * @param[in] y_max Iso-oriented cuboid y_max. + * @param[in] z_max Iso-oriented cuboid z_max. + * + * @pre Available if Alpha_complex_3d is Periodic. + * + * The type InputPointRange must be a range for which std::begin and std::end return input iterators on a + * `Alpha_complex_3d::Point_3` or a `Alpha_complex_3d::Triangulation_3::Weighted_point`. + * + * @note In weighted version, please check weights are greater than zero, and lower than 1/64*cuboid length + * squared. + */ + template + Alpha_complex_3d(const InputPointRange& points, Alpha_value_type x_min, Alpha_value_type y_min, + Alpha_value_type z_min, Alpha_value_type x_max, Alpha_value_type y_max, Alpha_value_type z_max) { + static_assert(Periodic, "This constructor is not available for non-periodic versions of Alpha_complex_3d"); // Checking if the cuboid is the same in x,y and z direction. If not, CGAL will not process it. - GUDHI_CHECK((x_max - x_min == y_max - y_min) && - (x_max - x_min == z_max - z_min) && - (z_max - z_min == y_max - y_min), - std::invalid_argument("The size of the cuboid in every directions is not the same.")); + GUDHI_CHECK( + (x_max - x_min == y_max - y_min) && (x_max - x_min == z_max - z_min) && (z_max - z_min == y_max - y_min), + std::invalid_argument("The size of the cuboid in every directions is not the same.")); // Define the periodic cube Triangulation_3 pdt(typename Kernel::Iso_cuboid_3(x_min, y_min, z_min, x_max, y_max, z_max)); @@ -357,49 +336,44 @@ public: // alpha shape construction from points. CGAL has a strange behavior in REGULARIZED mode. This is the default mode // Maybe need to set it to GENERAL mode - alpha_shape_3_ptr_ = std::unique_ptr(new Alpha_shape_3(pdt, 0, - Alpha_shape_3::GENERAL)); + alpha_shape_3_ptr_ = std::unique_ptr(new Alpha_shape_3(pdt, 0, Alpha_shape_3::GENERAL)); } /** \brief Alpha_complex constructor from a list of points, associated weights and an iso-cuboid coordinates. - * - * @exception std::invalid_argument In debug mode, if points and weights do not have the same size. - * @exception std::invalid_argument In debug mode, if the size of the cuboid in every directions is not the same. - * @exception std::invalid_argument In debug mode, if a weight is negative, zero, or greater than 1/64*cuboid length - * squared. - * - * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` - * @param[in] weights Range of weights on points. Weights shall be in `Alpha_complex_3d::Alpha_shape_3::FT` - * @param[in] x_min Iso-oriented cuboid x_min. - * @param[in] y_min Iso-oriented cuboid y_min. - * @param[in] z_min Iso-oriented cuboid z_min. - * @param[in] x_max Iso-oriented cuboid x_max. - * @param[in] y_max Iso-oriented cuboid y_max. - * @param[in] z_max Iso-oriented cuboid z_max. - * - * @pre Available if Alpha_complex_3d is Weighted and Periodic. - * - * The type InputPointRange must be a range for which std::begin and - * std::end return input iterators on a `Alpha_complex_3d::Point_3`. - * The type WeightRange must be a range for which std::begin and - * std::end return an input iterator on a `Alpha_complex_3d::Alpha_shape_3::FT`. - * The type of x_min, y_min, z_min, x_max, y_max and z_max is `Alpha_complex_3d::Alpha_shape_3::FT`. - */ - template - Alpha_complex_3d(const InputPointRange& points, WeightRange weights, - Alpha_value_type x_min, Alpha_value_type y_min, Alpha_value_type z_min, - Alpha_value_type x_max, Alpha_value_type y_max, Alpha_value_type z_max) { - static_assert(Weighted, - "This constructor is not available for non-weighted versions of Alpha_complex_3d"); - static_assert(Periodic, - "This constructor is not available for non-periodic versions of Alpha_complex_3d"); + * + * @exception std::invalid_argument In debug mode, if points and weights do not have the same size. + * @exception std::invalid_argument In debug mode, if the size of the cuboid in every directions is not the same. + * @exception std::invalid_argument In debug mode, if a weight is negative, zero, or greater than 1/64*cuboid length + * squared. + * + * @param[in] points Range of points to triangulate. Points must be in `Alpha_complex_3d::Point_3` + * @param[in] weights Range of weights on points. Weights shall be in `Alpha_complex_3d::Alpha_shape_3::FT` + * @param[in] x_min Iso-oriented cuboid x_min. + * @param[in] y_min Iso-oriented cuboid y_min. + * @param[in] z_min Iso-oriented cuboid z_min. + * @param[in] x_max Iso-oriented cuboid x_max. + * @param[in] y_max Iso-oriented cuboid y_max. + * @param[in] z_max Iso-oriented cuboid z_max. + * + * @pre Available if Alpha_complex_3d is Weighted and Periodic. + * + * The type InputPointRange must be a range for which std::begin and + * std::end return input iterators on a `Alpha_complex_3d::Point_3`. + * The type WeightRange must be a range for which std::begin and + * std::end return an input iterator on a `Alpha_complex_3d::Alpha_shape_3::FT`. + * The type of x_min, y_min, z_min, x_max, y_max and z_max is `Alpha_complex_3d::Alpha_shape_3::FT`. + */ + template + Alpha_complex_3d(const InputPointRange& points, WeightRange weights, Alpha_value_type x_min, Alpha_value_type y_min, + Alpha_value_type z_min, Alpha_value_type x_max, Alpha_value_type y_max, Alpha_value_type z_max) { + static_assert(Weighted, "This constructor is not available for non-weighted versions of Alpha_complex_3d"); + static_assert(Periodic, "This constructor is not available for non-periodic versions of Alpha_complex_3d"); GUDHI_CHECK((weights.size() == points.size()), std::invalid_argument("Points number in range different from weights range number")); // Checking if the cuboid is the same in x,y and z direction. If not, CGAL will not process it. - GUDHI_CHECK((x_max - x_min == y_max - y_min) && - (x_max - x_min == z_max - z_min) && - (z_max - z_min == y_max - y_min), - std::invalid_argument("The size of the cuboid in every directions is not the same.")); + GUDHI_CHECK( + (x_max - x_min == y_max - y_min) && (x_max - x_min == z_max - z_min) && (z_max - z_min == y_max - y_min), + std::invalid_argument("The size of the cuboid in every directions is not the same.")); using Weighted_point_3 = typename Triangulation_3::Weighted_point; std::vector weighted_points_3; @@ -433,38 +407,36 @@ public: // alpha shape construction from points. CGAL has a strange behavior in REGULARIZED mode. This is the default mode // Maybe need to set it to GENERAL mode - alpha_shape_3_ptr_ = std::unique_ptr(new Alpha_shape_3(pdt, 0, - Alpha_shape_3::GENERAL)); + alpha_shape_3_ptr_ = std::unique_ptr(new Alpha_shape_3(pdt, 0, Alpha_shape_3::GENERAL)); } /** \brief Inserts all Delaunay triangulation into the simplicial complex. - * It also computes the filtration values accordingly to the \ref createcomplexalgorithm - * - * \tparam SimplicialComplexForAlpha3d must meet `SimplicialComplexForAlpha3d` concept. - * - * @param[in] complex SimplicialComplexForAlpha3d to be created. - * @param[in] max_alpha_square maximum for alpha square value. Default value is +\f$\infty\f$. - * - * @return true if creation succeeds, false otherwise. - * - * @pre The simplicial complex must be empty (no vertices) - * - * Initialization can be launched once. - * - */ - template - bool create_complex(SimplicialComplexForAlpha3d& complex, Filtration_value max_alpha_square = - std::numeric_limits::infinity()) { + * It also computes the filtration values accordingly to the \ref createcomplexalgorithm + * + * \tparam SimplicialComplexForAlpha3d must meet `SimplicialComplexForAlpha3d` concept. + * + * @param[in] complex SimplicialComplexForAlpha3d to be created. + * @param[in] max_alpha_square maximum for alpha square value. Default value is +\f$\infty\f$. + * + * @return true if creation succeeds, false otherwise. + * + * @pre The simplicial complex must be empty (no vertices) + * + * Initialization can be launched once. + * + */ + template + bool create_complex(SimplicialComplexForAlpha3d& complex, + Filtration_value max_alpha_square = std::numeric_limits::infinity()) { if (complex.num_vertices() > 0) { std::cerr << "Alpha_complex_3d create_complex - complex is not empty\n"; return false; // ----- >> } - //using Filtration_value = typename SimplicialComplexForAlpha3d::Filtration_value; + // using Filtration_value = typename SimplicialComplexForAlpha3d::Filtration_value; using Complex_vertex_handle = typename SimplicialComplexForAlpha3d::Vertex_handle; - using Alpha_shape_simplex_tree_map = std::unordered_map; + using Alpha_shape_simplex_tree_map = std::unordered_map; using Simplex_tree_vector_vertex = std::vector; #ifdef DEBUG_TRACES @@ -483,7 +455,7 @@ public: #ifdef DEBUG_TRACES std::cout << "filtration_with_alpha_values returns : " << objects.size() << " objects" << std::endl; #endif // DEBUG_TRACES - + Alpha_shape_simplex_tree_map map_cgal_simplex_tree; using Alpha_value_iterator = typename std::vector::const_iterator; Alpha_value_iterator alpha_value_iterator = alpha_values.begin(); @@ -491,7 +463,7 @@ public: Vertex_list vertex_list; // Retrieve Alpha shape vertex list from object - if (const Cell_handle *cell = CGAL::object_cast(&object_iterator)) { + if (const Cell_handle* cell = CGAL::object_cast(&object_iterator)) { for (auto i = 0; i < 4; i++) { #ifdef DEBUG_TRACES std::cout << "from cell[" << i << "]=" << (*cell)->vertex(i)->point() << std::endl; @@ -501,29 +473,29 @@ public: #ifdef DEBUG_TRACES count_cells++; #endif // DEBUG_TRACES - } else if (const Facet *facet = CGAL::object_cast(&object_iterator)) { - for (auto i = 0; i < 4; i++) { - if ((*facet).second != i) { + } else if (const Facet* facet = CGAL::object_cast(&object_iterator)) { + for (auto i = 0; i < 4; i++) { + if ((*facet).second != i) { #ifdef DEBUG_TRACES - std::cout << "from facet=[" << i << "]" << (*facet).first->vertex(i)->point() << std::endl; + std::cout << "from facet=[" << i << "]" << (*facet).first->vertex(i)->point() << std::endl; #endif // DEBUG_TRACES - vertex_list.push_back((*facet).first->vertex(i)); - } + vertex_list.push_back((*facet).first->vertex(i)); } + } #ifdef DEBUG_TRACES count_facets++; #endif // DEBUG_TRACES - } else if (const Edge *edge = CGAL::object_cast(&object_iterator)) { - for (auto i : {(*edge).second, (*edge).third}) { + } else if (const Edge* edge = CGAL::object_cast(&object_iterator)) { + for (auto i : {(*edge).second, (*edge).third}) { #ifdef DEBUG_TRACES - std::cout << "from edge[" << i << "]=" << (*edge).first->vertex(i)->point() << std::endl; + std::cout << "from edge[" << i << "]=" << (*edge).first->vertex(i)->point() << std::endl; #endif // DEBUG_TRACES - vertex_list.push_back((*edge).first->vertex(i)); - } + vertex_list.push_back((*edge).first->vertex(i)); + } #ifdef DEBUG_TRACES count_edges++; #endif // DEBUG_TRACES - } else if (const Alpha_vertex_handle *vertex = CGAL::object_cast(&object_iterator)) { + } else if (const Alpha_vertex_handle* vertex = CGAL::object_cast(&object_iterator)) { #ifdef DEBUG_TRACES count_vertices++; std::cout << "from vertex=" << (*vertex)->point() << std::endl; @@ -577,10 +549,9 @@ public: return true; } -private: + private: // use of a unique_ptr on cgal Alpha_shape_3, as copy and default constructor is not available - no need to be freed std::unique_ptr alpha_shape_3_ptr_; - }; } // namespace alpha_complex diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_options.h b/src/Alpha_complex/include/gudhi/Alpha_complex_options.h index 29eb514a..7a555fa1 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex_options.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex_options.h @@ -23,7 +23,6 @@ #ifndef ALPHA_COMPLEX_OPTIONS_H_ #define ALPHA_COMPLEX_OPTIONS_H_ - namespace Gudhi { namespace alpha_complex { @@ -33,11 +32,10 @@ namespace alpha_complex { * * \ingroup alpha_complex */ -enum class complexity: char -{ - FAST='f', ///< Fast version. - SAFE='s', ///< Safe version. - EXACT='e', ///< Exact version. +enum class complexity : char { + FAST = 'f', ///< Fast version. + SAFE = 's', ///< Safe version. + EXACT = 'e', ///< Exact version. }; } // namespace alpha_complex -- cgit v1.2.3