From c524232f734de875d69e2f190f01a6c976024368 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Thu, 14 Jun 2018 20:39:01 +0200 Subject: GUDHI 2.2.0 as released by upstream in a tarball. --- .../CGAL/TDS_full_cell_mirror_storage_policy.h | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 include/gudhi_patches/CGAL/TDS_full_cell_mirror_storage_policy.h (limited to 'include/gudhi_patches/CGAL/TDS_full_cell_mirror_storage_policy.h') diff --git a/include/gudhi_patches/CGAL/TDS_full_cell_mirror_storage_policy.h b/include/gudhi_patches/CGAL/TDS_full_cell_mirror_storage_policy.h deleted file mode 100644 index 095dfe68..00000000 --- a/include/gudhi_patches/CGAL/TDS_full_cell_mirror_storage_policy.h +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2009-2014 INRIA Sophia-Antipolis (France). -// All rights reserved. -// -// This file is part of CGAL (www.cgal.org). -// You can redistribute it and/or modify it under the terms of the GNU -// General Public License as published by the Free Software Foundation, -// either version 3 of the License, or (at your option) any later version. -// -// Licensees holding a valid commercial license may use this file in -// accordance with the commercial license agreement provided with the software. -// -// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// -// $URL$ -// $Id$ -// -// Author(s) : Samuel Hornus - -#ifndef CGAL_TDS_FULL_CELL_MIRROR_STORAGE_POLICY_H -#define CGAL_TDS_FULL_CELL_MIRROR_STORAGE_POLICY_H - -#include - -namespace CGAL { - -// POLICY TAGS - -struct TDS_full_cell_mirror_storage_policy {}; // Stores the mirror index of all vertices. - -template< typename Vertex_handle, typename Full_cell_handle, typename Maximal_dimension > -struct TFC_data< Vertex_handle, Full_cell_handle, Maximal_dimension, TDS_full_cell_mirror_storage_policy > -: public TFC_data< Vertex_handle, Full_cell_handle, Maximal_dimension, TDS_full_cell_default_storage_policy > -{ - typedef TFC_data< Vertex_handle, Full_cell_handle, Maximal_dimension, TDS_full_cell_default_storage_policy > Base; - typedef typename Base::Vertex_handle_array Vertex_handle_array; - typedef typename Base::Full_cell_handle_array Full_cell_handle_array; - typedef typename internal::S_or_D_array< int, typename Base::Dimen_plus > Int_array; - -private: - Int_array mirror_vertices_; - -public: - TFC_data(const int dmax) - : Base(dmax), mirror_vertices_(dmax+1) - {} - - void set_mirror_index(const int i, const int index) - { - mirror_vertices_[i] = index; - } - int mirror_index(const int i) const - { - return mirror_vertices_[i]; - } - Vertex_handle mirror_vertex(const int i, const int) const - { - return Base::neighbors_[i]->vertex(mirror_index(i)); - } - void swap_vertices(const int d1, const int d2) - { - Base::swap_vertices(d1, d2); - std::swap(mirror_vertices_[d1], mirror_vertices_[d2]); - Base::neighbors_[d1]->set_mirror_index(mirror_vertices_[d1], d1); - Base::neighbors_[d2]->set_mirror_index(mirror_vertices_[d2], d2); - } -}; - -} //namespace CGAL - -#endif // CGAL_TDS_FULL_CELL_MIRROR_STORAGE_POLICY_H -- cgit v1.2.3