17 #ifndef PM_RU_PAIRING_H
18 #define PM_RU_PAIRING_H
23 namespace persistence_matrix {
44 template <
class Master_matrix>
82 pairing1.barcode_.swap(pairing2.barcode_);
83 pairing1.indexToBar_.swap(pairing2.indexToBar_);
87 using dictionnary_type =
typename Master_matrix::bar_dictionnary_type;
90 dictionnary_type indexToBar_;
93 template <
class Master_matrix>
97 template <
class Master_matrix>
99 : barcode_(matrixToCopy.barcode_), indexToBar_(matrixToCopy.indexToBar_)
102 template <
class Master_matrix>
104 : barcode_(std::move(other.barcode_)), indexToBar_(std::move(other.indexToBar_))
107 template <
class Master_matrix>
113 template <
class Master_matrix>
116 barcode_.
swap(other.barcode_);
117 indexToBar_.swap(other.indexToBar_);
Class managing the barcode for RU_matrix if the option was enabled.
Definition: ru_pairing.h:46
friend void swap(RU_pairing &pairing1, RU_pairing &pairing2)
Swap operator.
Definition: ru_pairing.h:81
typename Master_matrix::barcode_type barcode_type
Definition: ru_pairing.h:48
RU_pairing()
Default constructor.
Definition: ru_pairing.h:94
const barcode_type & get_current_barcode() const
Returns the current barcode which is maintained at any insertion, removal or vine swap.
Definition: ru_pairing.h:108
RU_pairing & operator=(RU_pairing other)
Assign operator.
Definition: ru_pairing.h:114
Gudhi namespace.
Definition: SimplicialComplexForAlpha.h:14
Empty structure. Inheritated instead of RU_pairing, when the computation of the barcode was not enabl...
Definition: ru_pairing.h:32