Skip to content

Commit

Permalink
Add more details for comparison operator and serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentRouvreau committed Nov 7, 2024
1 parent c5cddc3 commit 7ce085d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Simplex_tree/include/gudhi/Simplex_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,9 @@ class Simplex_tree {
public:
template<typename> friend class Simplex_tree;

/** \brief Checks if two simplex trees are equal. */
/** \brief Checks if two simplex trees are equal. Any extra data (@ref Simplex_data) stored in the simplices are
* ignored in the coomparison
*/
template<class OtherSimplexTreeOptions>
bool operator==(Simplex_tree<OtherSimplexTreeOptions>& st2) {
if ((null_vertex_ != st2.null_vertex_) ||
Expand Down Expand Up @@ -2533,6 +2535,8 @@ class Simplex_tree {
*
* @warning Serialize/Deserialize is not portable. It is meant to be read in a Simplex_tree with the same
* SimplexTreeOptions and on a computer with the same architecture.
*
* Serialize/Deserialize ignore any extra data (@ref Simplex_data) stored in the simplices for now.
*/
/* Let's take the following simplicial complex as example: */
/* (vertices are represented as letters to ease the understanding) */
Expand Down Expand Up @@ -2601,6 +2605,7 @@ class Simplex_tree {
* @warning Serialize/Deserialize is not portable. It is meant to be read in a Simplex_tree with the same
* SimplexTreeOptions and on a computer with the same architecture.
*
* Serialize/Deserialize ignore any extra data (@ref Simplex_data) stored in the simplices for now.
*/
void deserialize(const char* buffer, const std::size_t buffer_size) {
GUDHI_CHECK(num_vertices() == 0, std::logic_error("Simplex_tree::deserialize - Simplex_tree must be empty"));
Expand Down

0 comments on commit 7ce085d

Please sign in to comment.