#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 (interval_vector &&ivals, std::size_t depth=16, std::size_t minbucket=64, std::size_t maxbucket=512, Scalar leftextent=0, Scalar rightextent=0) | |
IntervalTree (IntervalTree &&)=default | |
std::pair< bool, std::pair< Scalar, Scalar > > | is_valid () const |
IntervalTree & | operator= (const IntervalTree &other) |
IntervalTree & | operator= (IntervalTree &&)=default |
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 43 of file intervaltree.hpp.
using mcap::internal::IntervalTree< Scalar, Value >::interval = Interval<Scalar, Value> |
Definition at line 45 of file intervaltree.hpp.
using mcap::internal::IntervalTree< Scalar, Value >::interval_vector = std::vector<interval> |
Definition at line 46 of file intervaltree.hpp.
|
inline |
Definition at line 60 of file intervaltree.hpp.
|
default |
|
inline |
Definition at line 71 of file intervaltree.hpp.
|
default |
|
inline |
Definition at line 88 of file intervaltree.hpp.
|
inline |
Definition at line 67 of file intervaltree.hpp.
|
inline |
Definition at line 209 of file intervaltree.hpp.
|
inline |
Definition at line 233 of file intervaltree.hpp.
|
inline |
Definition at line 201 of file intervaltree.hpp.
|
inline |
Definition at line 193 of file intervaltree.hpp.
|
inline |
Definition at line 252 of file intervaltree.hpp.
|
inline |
Definition at line 80 of file intervaltree.hpp.
|
default |
|
inline |
Definition at line 223 of file intervaltree.hpp.
|
inline |
Definition at line 184 of file intervaltree.hpp.
|
inline |
Definition at line 150 of file intervaltree.hpp.
|
inline |
Definition at line 166 of file intervaltree.hpp.
|
inline |
Definition at line 172 of file intervaltree.hpp.
|
private |
Definition at line 300 of file intervaltree.hpp.
|
private |
Definition at line 297 of file intervaltree.hpp.
|
private |
Definition at line 298 of file intervaltree.hpp.
|
private |
Definition at line 299 of file intervaltree.hpp.