Loading...
Searching...
No Matches
boundary_cell_position_to_id_mapper.h
Go to the documentation of this file.
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
* See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
* Author(s): Hannah Schreiber
*
* Copyright (C) 2022-24 Inria
*
* Modification(s):
* - YYYY/MM Author: Description of the modification
*/
#ifndef PM_ID_POS_MAPPER_H
#define PM_ID_POS_MAPPER_H
#include <unordered_map>
namespace Gudhi {
namespace persistence_matrix {
struct Dummy_pos_mapper {
friend void swap([[maybe_unused]] Dummy_pos_mapper& d1, [[maybe_unused]] Dummy_pos_mapper& d2) {}
};
template<typename ID_index, typename Pos_index>
struct Cell_position_to_ID_mapper {
using Index_map = std::unordered_map<Pos_index,ID_index>; //TODO: test other map types
Index_map map_;
friend void swap(Cell_position_to_ID_mapper& mapper1, Cell_position_to_ID_mapper& mapper2) {
mapper1.map_.swap(mapper2.map_);
}
};
} // namespace persistence_matrix
} // namespace Gudhi
#endif // PM_ID_POS_MAPPER_H
Gudhi::persistence_matrix
Persistence matrix namespace.
Definition FieldOperators.h:18
Gudhi
Gudhi namespace.
Definition SimplicialComplexForAlpha.h:14