summaryrefslogtreecommitdiff
path: root/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
diff options
context:
space:
mode:
authorfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-23 17:18:13 +0000
committerfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-23 17:18:13 +0000
commit6f4c7c0177b6ccf88b61056ea9d2ae2b066e056a (patch)
treef1befd78cc01d3a0e0fce85e383d0eb540cf3b61 /src/Toplex_map/include/gudhi/Filtered_toplex_map.h
parenta4677295cf1dd3a8e02dd135348b321eae044104 (diff)
3 files - 3 docs
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/toplex_map@2945 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: ce6663f33da653f2ac520b4d0f3684b4776aec94
Diffstat (limited to 'src/Toplex_map/include/gudhi/Filtered_toplex_map.h')
-rw-r--r--src/Toplex_map/include/gudhi/Filtered_toplex_map.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Toplex_map/include/gudhi/Filtered_toplex_map.h b/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
index a0c24304..28814d15 100644
--- a/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
+++ b/src/Toplex_map/include/gudhi/Filtered_toplex_map.h
@@ -7,17 +7,45 @@
namespace Gudhi {
+/** A Filtered_toplex_map represents the simplicial complex with a filtration.
+ * A "toplex" is a critical simplex.
+ * \ingroup toplex_map */
class Filtered_toplex_map {
public:
+ /** Vertex is the type of vertices.
+ * \ingroup toplex_map */
+ typedef Toplex_map::Vertex Vertex;
+
+ /** Simplex is the type of simplices.
+ * \ingroup toplex_map */
+ typedef Toplex_map::Simplex Simplex;
+
+ /** The type of the pointers to maximal simplices.
+ * \ingroup toplex_map */
+ typedef Toplex_map::Simplex_ptr Simplex_ptr;
+
+ /** The type of the sets of Simplex_ptr.
+ * \ingroup toplex_map */
+ typedef Toplex_map::Simplex_ptr_set Simplex_ptr_set;
+
+ /** The type of the filtration values.
+ * \ingroup toplex_map */
typedef double Filtration_value;
+ /** Add a simplex and its subfaces with the given filtration value
+ * in the Filtered_toplex_map.
+ * \ingroup toplex_map */
template <typename Input_vertex_range>
std::pair<Simplex, bool> insert_simplex_and_subfaces(const Input_vertex_range &vertex_range, Filtration_value f = nan(""));
+ /** Gives the filtration of the input simplex.
+ * \ingroup toplex_map */
template <typename Input_vertex_range>
Filtration_value filtration(const Input_vertex_range &vertex_range) const;
+ /** Is the input simplex member of the complex ?
+ * \ingroup toplex_map */
template <typename Input_vertex_range>
bool membership(const Input_vertex_range &vertex_range) const;