|
CGAL 6.1 - Homological Discrete Vector Fields
|
#include <CGAL/HDVF/Hdvf_persistence.h>
Iterator over (finite) persistent intervals.
Iterate over persistent intervals of finite degree duration. If discard_small is true (which is the default), the iterator discards persistent intervals with a null degree duration (that is, small persistent holes).
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | value_type = PerIntervalInformation |
Public Member Functions | |
| iterator (const Hdvf_persistence &per_hdvf, size_t i=0, bool discard_small=true) | |
| Iterator constructor. | |
| bool | has_discard_small () |
Returns the discard_small flag. | |
| value_type | operator* () const |
| Iterator dereference. | |
| iterator & | operator++ () |
| Prefix incrementation. | |
| iterator | operator++ (int) |
| Postfix incrementation. | |
Friends | |
| bool | operator== (const iterator &a, const iterator &b) |
| Equality check. | |
| bool | operator!= (const iterator &a, const iterator &b) |
| Inequality check. | |
| CGAL::HDVF::Hdvf_persistence< CoefficientType, ComplexType, DegType, FiltrationType >::iterator::iterator | ( | const Hdvf_persistence & | per_hdvf, |
| size_t | i = 0, |
||
| bool | discard_small = true |
||
| ) |
Iterator constructor.
| [in] | per_hdvf | Constant reference over the Hdvf_persistence iterated. |
| [in] | i | The initial index. |
| [in] | discard_small | If true (default), only persistent intervals of (strictly) positive degree duration are iterated. Otherwise, all persistent intervals are iterated. |
| value_type CGAL::HDVF::Hdvf_persistence< CoefficientType, ComplexType, DegType, FiltrationType >::iterator::operator* | ( | ) | const |
Iterator dereference.
PerIntervalInformation structure containing the information of the current persistence interval. | iterator & CGAL::HDVF::Hdvf_persistence< CoefficientType, ComplexType, DegType, FiltrationType >::iterator::operator++ | ( | ) |
Prefix incrementation.
Finds next persistent interval.
If discard_small is true, the iterator searches next persistent interval with a (strictly) positive degree duration, otherwise, the iterator returns next persistent interval.
| iterator CGAL::HDVF::Hdvf_persistence< CoefficientType, ComplexType, DegType, FiltrationType >::iterator::operator++ | ( | int | ) |
Postfix incrementation.
Finds the next not-null index.
|
friend |
Inequality check.