template<class Traits>
eckit::KDTreeMapped class

Base classes

template<class Traits>
class KDTreeX<TT<Traits, KDMapped>>

Public types

using KDTree = KDTreeX<TT<Traits, KDMapped>>
using Value = KDTree::Value
using Point = KDTree::Point
using Payload = KDTree::Payload
using Node = KDTree::Node
using SPTreeType = SPTree<TT<Traits, KDMapped>, Node>
using Alloc = Traits::Alloc
using Ptr = Alloc::Ptr
using ID = Alloc::Ptr
using Metadata = SPMetadata<Traits>
using PointType = Point
using PayloadType = Payload
using NodeList = Node::NodeList
using NodeInfo = SPNodeInfo<Traits, NodeType>
using iterator = SPIterator<Traits, NodeType>
using value_type = std::pair<Point, Payload>

Constructors, destructors, conversion operators

KDTreeMapped(const eckit::PathName& path, size_t itemCount, size_t metadataSize)

Public functions

void build(ITER begin, ITER end)
void build(Container& c)
void insert(const Value& value)
void setMetadata(const Point& offset, const Point& scale)
auto nodeByID(ID id) -> NodeInfo
void getMetadata(Point& offset, Point& scale)
auto nearestNeighbour(const Point& p) -> NodeInfo
auto findInSphere(const Point& p, double radius) -> NodeList
auto kNearestNeighbours(const Point& p, size_t k) -> NodeList
auto nearestNeighbourBruteForce(const Point& p) -> NodeInfo
auto findInSphereBruteForce(const Point& p, double radius) -> NodeList
auto kNearestNeighboursBruteForce(const Point& p, size_t k) -> NodeList
template<class Visitor>
void visit(Visitor& v)
void statsReset()
void statsPrint(std::ostream& o, bool fancy) const
void print(std::ostream& o) const
auto begin() -> iterator
auto end() -> iterator
auto empty() const -> bool
auto size() const -> size_t

Public variables

Ptr root_
Metadata meta_

Typedef documentation

template<class Traits>
typedef Alloc::Ptr eckit::KDTreeMapped<Traits>::Ptr

template<class Traits>
typedef Alloc::Ptr eckit::KDTreeMapped<Traits>::ID

template<class Traits>
typedef SPMetadata<Traits> eckit::KDTreeMapped<Traits>::Metadata

template<class Traits>
typedef Point eckit::KDTreeMapped<Traits>::PointType

template<class Traits>
typedef Payload eckit::KDTreeMapped<Traits>::PayloadType

template<class Traits>
typedef Node::NodeList eckit::KDTreeMapped<Traits>::NodeList

template<class Traits>
typedef SPNodeInfo<Traits, NodeType> eckit::KDTreeMapped<Traits>::NodeInfo

template<class Traits>
typedef SPIterator<Traits, NodeType> eckit::KDTreeMapped<Traits>::iterator

template<class Traits>
typedef std::pair<Point, Payload> eckit::KDTreeMapped<Traits>::value_type

Function documentation

template<class Traits>
void eckit::KDTreeMapped<Traits>::setMetadata(const Point& offset, const Point& scale)

template<class Traits>
NodeInfo eckit::KDTreeMapped<Traits>::nodeByID(ID id)

template<class Traits>
void eckit::KDTreeMapped<Traits>::getMetadata(Point& offset, Point& scale)

template<class Traits>
NodeInfo eckit::KDTreeMapped<Traits>::nearestNeighbour(const Point& p)

template<class Traits>
NodeList eckit::KDTreeMapped<Traits>::findInSphere(const Point& p, double radius)

template<class Traits>
NodeList eckit::KDTreeMapped<Traits>::kNearestNeighbours(const Point& p, size_t k)

template<class Traits>
NodeInfo eckit::KDTreeMapped<Traits>::nearestNeighbourBruteForce(const Point& p)

template<class Traits>
NodeList eckit::KDTreeMapped<Traits>::findInSphereBruteForce(const Point& p, double radius)

template<class Traits>
NodeList eckit::KDTreeMapped<Traits>::kNearestNeighboursBruteForce(const Point& p, size_t k)

template<class Traits> template<class Visitor>
void eckit::KDTreeMapped<Traits>::visit(Visitor& v)

template<class Traits>
void eckit::KDTreeMapped<Traits>::statsReset()

template<class Traits>
void eckit::KDTreeMapped<Traits>::statsPrint(std::ostream& o, bool fancy) const

template<class Traits>
void eckit::KDTreeMapped<Traits>::print(std::ostream& o) const

template<class Traits>
iterator eckit::KDTreeMapped<Traits>::begin()

template<class Traits>
iterator eckit::KDTreeMapped<Traits>::end()

template<class Traits>
bool eckit::KDTreeMapped<Traits>::empty() const

template<class Traits>
size_t eckit::KDTreeMapped<Traits>::size() const

Variable documentation

template<class Traits>
Ptr eckit::KDTreeMapped<Traits>::root_

template<class Traits>
Metadata eckit::KDTreeMapped<Traits>::meta_