#include <k_d_tree.h>
|
| using | Point = std::array<Component, Dim> |
|
| | KdTree () |
| | Empty tree.
|
| | KdTree (const Point &point, const Id &id) |
| | Build a tree containing just a single point.
|
| | KdTree (size_t n, Id const *ids, std::array< Component const *, Dim > pts) |
| | Build a tree.
|
| | KdTree (const KdTree &a, const KdTree &b) |
| | Merge two trees. Both trees are assumed to have a power of two size.
|
| template<typename F> |
| void | rangeQuery (const Point &min, const Point &max, const F &cb) const |
| void | remove (Idx internalIdx) |
| template<class F> |
| void | foreach (F cb) const |
| size_t | cap () const |
| | Capacity, not size, since some items may be marked as deleted.
|
◆ Point
template<uint8_t Dim, class Component, class Id>
| using k_d_tree::KdTree< Dim, Component, Id >::Point = std::array<Component, Dim> |
◆ KdTree() [1/4]
template<uint8_t Dim, class Component, class Id>
◆ KdTree() [2/4]
template<uint8_t Dim, class Component, class Id>
◆ KdTree() [3/4]
template<uint8_t Dim, class Component, class Id>
| k_d_tree::KdTree< Dim, Component, Id >::KdTree |
( |
size_t | n, |
|
|
Id const * | ids, |
|
|
std::array< Component const *, Dim > | pts ) |
|
inline |
◆ KdTree() [4/4]
template<uint8_t Dim, class Component, class Id>
| k_d_tree::KdTree< Dim, Component, Id >::KdTree |
( |
const KdTree< Dim, Component, Id > & | a, |
|
|
const KdTree< Dim, Component, Id > & | b ) |
|
inline |
◆ cap()
template<uint8_t Dim, class Component, class Id>
◆ foreach()
template<uint8_t Dim, class Component, class Id>
template<class F>
◆ init()
template<uint8_t Dim, class Component, class Id>
◆ rangeQuery() [1/2]
template<uint8_t Dim, class Component, class Id>
template<typename F>
◆ rangeQuery() [2/2]
template<uint8_t Dim, class Component, class Id>
template<typename F>
| void k_d_tree::KdTree< Dim, Component, Id >::rangeQuery |
( |
size_t | root, |
|
|
uint8_t | split, |
|
|
const Point & | min, |
|
|
const Point & | max, |
|
|
const F & | cb ) const |
|
inlineprivate |
◆ remove()
template<uint8_t Dim, class Component, class Id>
◆ deleted
template<uint8_t Dim, class Component, class Id>
◆ ids
template<uint8_t Dim, class Component, class Id>
◆ items
template<uint8_t Dim, class Component, class Id>
◆ tree
template<uint8_t Dim, class Component, class Id>
The documentation for this class was generated from the following file: