Cubical_complex_interface.h
1 /* This file is part of the Gudhi Library. The Gudhi library
2  * (Geometric Understanding in Higher Dimensions) is a generic C++
3  * library for computational topology.
4  *
5  * Author(s): Vincent Rouvreau
6  *
7  * Copyright (C) 2016 Inria
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef INCLUDE_CUBICAL_COMPLEX_INTERFACE_H_
24 #define INCLUDE_CUBICAL_COMPLEX_INTERFACE_H_
25 
26 #include <gudhi/Bitmap_cubical_complex.h>
27 #include <gudhi/Bitmap_cubical_complex_base.h>
28 #include <gudhi/Bitmap_cubical_complex_periodic_boundary_conditions_base.h>
29 
30 #include <iostream>
31 #include <vector>
32 #include <string>
33 
34 namespace Gudhi {
35 
36 namespace cubical_complex {
37 
38 template<typename CubicalComplexOptions = Bitmap_cubical_complex_base<double>>
39 class Cubical_complex_interface : public Bitmap_cubical_complex<CubicalComplexOptions> {
40  public:
41  Cubical_complex_interface(const std::vector<unsigned>& dimensions,
42  const std::vector<double>& top_dimensional_cells)
43  : Bitmap_cubical_complex<CubicalComplexOptions>(dimensions, top_dimensional_cells) {
44  }
45 
46  Cubical_complex_interface(const std::vector<unsigned>& dimensions,
47  const std::vector<double>& top_dimensional_cells,
48  const std::vector<bool>& periodic_dimensions)
49  : Bitmap_cubical_complex<CubicalComplexOptions>(dimensions, top_dimensional_cells, periodic_dimensions) {
50  }
51 
52  Cubical_complex_interface(const std::string& perseus_file)
53  : Bitmap_cubical_complex<CubicalComplexOptions>(perseus_file.c_str()) {
54  }
55 };
56 
57 } // namespace cubical_complex
58 
59 } // namespace Gudhi
60 
61 #endif // INCLUDE_CUBICAL_COMPLEX_INTERFACE_H_
62 
Definition: SimplicialComplexForAlpha.h:26
Bitmap_cubical_complex(const char *perseus_style_file)
Definition: Bitmap_cubical_complex.h:81
GUDHI  Version 2.2.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : GPL v3 Generated on Tue Aug 14 2018 11:45:43 for GUDHI by Doxygen 1.8.13