summaryrefslogtreecommitdiff
path: root/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toplex_map/include/gudhi/Filtered_toplex_map.h')
-rw-r--r--src/Toplex_map/include/gudhi/Filtered_toplex_map.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Toplex_map/include/gudhi/Filtered_toplex_map.h b/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
index 4b626f11..6d89c062 100644
--- a/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
+++ b/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
@@ -8,11 +8,11 @@
namespace Gudhi {
-typedef double Filtration_value;
-
class Filtered_toplex_map {
public:
+ typedef double Filtration_value;
+
template <typename Input_vertex_range>
void insert_simplex_and_subfaces(const Input_vertex_range &vertex_range, Filtration_value f = filtration_upper_bound);
@@ -21,7 +21,7 @@ public:
protected:
std::unordered_map<Filtration_value, Toplex_map> toplex_maps;
- std::unordered_map<Simplex_ptr, Filtration_value> filtrations;
+ std::unordered_map<Simplex_ptr, Filtration_value, Sptr_hash, Sptr_equal> filtrations;
};
@@ -33,7 +33,7 @@ void Filtered_toplex_map::insert_simplex_and_subfaces(const Input_vertex_range &
}
template <typename Input_vertex_range>
-Filtration_value Filtered_toplex_map::filtration(const Input_vertex_range &vertex_range) const{
+Filtered_toplex_map::Filtration_value Filtered_toplex_map::filtration(const Input_vertex_range &vertex_range) const{
for(auto kv : toplex_maps)
if(kv.second.membership(vertex_range))
return kv.first;