template<class Traits>
eckit::KDTreeMemory class

Base classes

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

Derived classes

template<class Traits>
class atlas::interpolation::method::Point2KdTree
template<class Traits>
class atlas::interpolation::method::PointKdTree
struct SearchLonLat

Public types

using KDTree = KDTreeX<TT<Traits, KDMemory>>
using Value = KDTree::Value
using Point = KDTree::Point
using Payload = KDTree::Payload
using Node = KDNode<TT<Traits, KDMemory>>
using SPTreeType = SPTree<TT<Traits, KDMemory>, 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

KDTreeMemory()

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::KDTreeMemory<Traits>::Ptr

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

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

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

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

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

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

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

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

Function documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Variable documentation

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

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