Dummy_valid_contraction.h
1 /* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
2  * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
3  * Author(s): David Salinas
4  *
5  * Copyright (C) 2014 Inria
6  *
7  * Modification(s):
8  * - YYYY/MM Author: Description of the modification
9  */
10 
11 #ifndef CONTRACTION_POLICIES_DUMMY_VALID_CONTRACTION_H_
12 #define CONTRACTION_POLICIES_DUMMY_VALID_CONTRACTION_H_
13 
14 #include <gudhi/Contraction/policies/Valid_contraction_policy.h>
15 
16 namespace Gudhi {
17 
18 namespace contraction {
19 
23 template< typename EdgeProfile>
25  public:
26  typedef typename EdgeProfile::Point Point;
27 
28  bool operator()(const EdgeProfile& profile, const boost::optional<Point>& placement) {
29  return true;
30  }
31 };
32 
33 } // namespace contraction
34 
35 } // namespace Gudhi
36 
37 #endif // CONTRACTION_POLICIES_DUMMY_VALID_CONTRACTION_H_
Gudhi::contraction::Dummy_valid_contraction
Policy that accept all edge contraction.
Definition: Dummy_valid_contraction.h:24
Gudhi::contraction::Valid_contraction_policy
Policy to specify if an edge contraction is valid or not.
Definition: Valid_contraction_policy.h:23
GUDHI  Version 3.0.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Tue Dec 10 2019 13:33:51 for GUDHI by Doxygen 1.8.16