Loading...
Searching...
No Matches
FiltrationValue.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): Clément Maria
4 *
5 * Copyright (C) 2014 Inria
6 *
7 * Modification(s):
8 * - 2024/08 Hannah Schreiber: Update of the concept after several additions to the Simplex tree.
9 * - YYYY/MM Author: Description of the modification
10 */
11
42
43 // only for default ordering of filtration_vect_ in initialize_filtration and for prune_above_filtration
47 friend bool operator<(const FiltrationValue& f1, const FiltrationValue& f2);
51 friend bool operator==(const FiltrationValue& f1, const FiltrationValue& f2);
52
58
64
81 friend bool unify_lifetimes(FiltrationValue& f1, const FiltrationValue& f2);
82
92
102 friend char* serialize_value_to_char_buffer(const FiltrationValue& value, char* start);
103
115 friend const char* deserialize_value_from_char_buffer(FiltrationValue& value, const char* start);
116
122 friend std::size_t get_serialization_size_of(const FiltrationValue& value);
123
129 friend std::ostream& operator<<(std::ostream& os, const FiltrationValue& fil);
130
136 friend std::istream& operator>>(std::istream& os, FiltrationValue& fil);
137};
friend const char * deserialize_value_from_char_buffer(FiltrationValue &value, const char *start)
Only necessary when deserializing the simplex tree. Deserializes the object at the given start positi...
friend std::ostream & operator<<(std::ostream &os, const FiltrationValue &fil)
Outputs the filtration value into the stream. Only necessary if the operator<< of the simplex tree ne...
friend bool unify_lifetimes(FiltrationValue &f1, const FiltrationValue &f2)
Given two filtration values at which a simplex exists, computes the minimal union of births generatin...
friend std::size_t get_serialization_size_of(const FiltrationValue &value)
Only necessary when serializing the simplex tree. Returns the serialization size of the given object....
friend bool is_positive_infinity(const FiltrationValue &f)
Returns true if and only if the given filtration value is at infinity. Overloads for native arithmeti...
friend char * serialize_value_to_char_buffer(const FiltrationValue &value, char *start)
Only necessary when serializing the simplex tree. Serialize the given value and insert it at start po...
friend std::istream & operator>>(std::istream &os, FiltrationValue &fil)
Inputs the content of the stream into the filtration value. Only necessary if the operator>> of the s...
FiltrationValue(Gudhi::simplex_tree::empty_filtration_value_t e)
Only necessary if FiltrationValue(0) does not correspond to an "empty" filtration value,...
friend bool operator<(const FiltrationValue &f1, const FiltrationValue &f2)
Strictly smaller operator. If the filtration values are totally ordered, should be a StrictWeakOrderi...
friend FiltrationValue operator-(const FiltrationValue &f)
Only necessary if std::numeric_limits<FiltrationValue>::has_infinity returns true....
FiltrationValue()
Has to construct the default value of FiltrationValue.
friend bool operator==(const FiltrationValue &f1, const FiltrationValue &f2)
Equality operator.
friend bool intersect_lifetimes(FiltrationValue &f1, const FiltrationValue &f2)
Given two filtration values, stores in the first value the lowest common upper bound of the two value...
Returns Filtration_value(0) when converted to Filtration_value.
Definition filtration_value_utils.h:28