#include <intervaltree.hpp>
Classes | |
struct | IntervalStartCmp |
struct | IntervalStopCmp |
Public Types | |
using | interval = Interval< Scalar, Value > |
using | interval_vector = std::vector< interval > |
Public Member Functions | |
std::unique_ptr< IntervalTree > | clone () const |
bool | empty () const |
std::pair< Scalar, Scalar > | extent () const |
interval_vector | find_contained (const Scalar &start, const Scalar &stop) const |
interval_vector | find_overlapping (const Scalar &start, const Scalar &stop) const |
IntervalTree () | |
IntervalTree (const IntervalTree &other) | |
IntervalTree (IntervalTree &&)=default | |
IntervalTree (interval_vector &&ivals, std::size_t depth=16, std::size_t minbucket=64, std::size_t maxbucket=512, Scalar leftextent=0, Scalar rightextent=0) | |
std::pair< bool, std::pair< Scalar, Scalar > > | is_valid () const |
IntervalTree & | operator= (IntervalTree &&)=default |
IntervalTree & | operator= (const IntervalTree &other) |
template<class UnaryFunction > | |
void | visit_all (UnaryFunction f) const |
template<class UnaryFunction > | |
void | visit_contained (const Scalar &start, const Scalar &stop, UnaryFunction f) const |
template<class UnaryFunction > | |
void | visit_near (const Scalar &start, const Scalar &stop, UnaryFunction f) const |
template<class UnaryFunction > | |
void | visit_overlapping (const Scalar &pos, UnaryFunction f) const |
template<class UnaryFunction > | |
void | visit_overlapping (const Scalar &start, const Scalar &stop, UnaryFunction f) const |
~IntervalTree ()=default | |
Private Attributes | |
Scalar | center |
interval_vector | intervals |
std::unique_ptr< IntervalTree > | left |
std::unique_ptr< IntervalTree > | right |
Definition at line 45 of file intervaltree.hpp.
using mcap::internal::IntervalTree< Scalar, Value >::interval = Interval<Scalar, Value> |
Definition at line 47 of file intervaltree.hpp.
using mcap::internal::IntervalTree< Scalar, Value >::interval_vector = std::vector<interval> |
Definition at line 48 of file intervaltree.hpp.
|
inline |
Definition at line 62 of file intervaltree.hpp.
|
default |
|
inline |
Definition at line 73 of file intervaltree.hpp.
|
default |
|
inline |
Definition at line 90 of file intervaltree.hpp.
|
inline |
Definition at line 69 of file intervaltree.hpp.
|
inline |
Definition at line 211 of file intervaltree.hpp.
|
inline |
Definition at line 235 of file intervaltree.hpp.
|
inline |
Definition at line 203 of file intervaltree.hpp.
|
inline |
Definition at line 195 of file intervaltree.hpp.
|
inline |
Definition at line 254 of file intervaltree.hpp.
|
default |
|
inline |
Definition at line 82 of file intervaltree.hpp.
|
inline |
Definition at line 225 of file intervaltree.hpp.
|
inline |
Definition at line 186 of file intervaltree.hpp.
|
inline |
Definition at line 152 of file intervaltree.hpp.
|
inline |
Definition at line 168 of file intervaltree.hpp.
|
inline |
Definition at line 174 of file intervaltree.hpp.
|
private |
Definition at line 302 of file intervaltree.hpp.
|
private |
Definition at line 299 of file intervaltree.hpp.
|
private |
Definition at line 300 of file intervaltree.hpp.
|
private |
Definition at line 301 of file intervaltree.hpp.