#include <src/KDTree.h>
template<class T, std::size_t N>
KDTree class
Container for the KD-tree.
| Template parameters | |
|---|---|
| T | the type of point (must be a real floating point type) |
| N | the dimension of the point (must be greater than zero) |
Contents
Public types
- using Point = Eigen::Matrix<T, N, 1>
- using KDPointArray = std::vector<Point*>
- using ArrayIter = KDPointArray::iterator
- using SplitFunction = std::function<ArrayIter(const ArrayIter&, const ArrayIter&, const std::size_t)>
Constructors, destructors, conversion operators
- KDTree() deleted
- KDTree(const KDTree&) deleted
- ~KDTree() defaulted
- KDTree(KDPointArray& arr, const SplitFunction& splitFun)
Public functions
Typedef documentation
template<class T, std::size_t N>
typedef Eigen::Matrix<T, N, 1> KDTree<T, N>:: Point
Alias for the internal point structure
template<class T, std::size_t N>
typedef std::vector<Point*> KDTree<T, N>:: KDPointArray
Alias for the input KDPoint shared pointer vector
template<class T, std::size_t N>
typedef KDPointArray::iterator KDTree<T, N>:: ArrayIter
Alias for the KDPointArray iterator
template<class T, std::size_t N>
typedef std::function<ArrayIter(const ArrayIter&, const ArrayIter&, const std::size_t)> KDTree<T, N>:: SplitFunction
Alias for the split function used for the construction of the tree
Function documentation
template<class T, std::size_t N>
KDTree<T, N>:: KDTree() deleted
Deletion of the default constructor
template<class T, std::size_t N>
KDTree<T, N>:: ~KDTree() defaulted
Default destructor
template<class T, std::size_t N>
KDTree<T, N>:: KDTree(KDPointArray& arr,
const SplitFunction& splitFun)
| Parameters | |
|---|---|
| arr | the input array of KDPoint |
| splitFun | the split function used for the construction |
Construct a KDTree from an array of KDPoint
template<class T, std::size_t N>
std::size_t KDTree<T, N>:: memoryUsage()
Estimates the current memory usage of the tree