#include <eckit/container/KDTree.h>
template<class Traits>
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
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
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
Typedef documentation
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef Alloc::Ptr eckit:: KDTreeMemory<Traits>:: Ptr
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef Alloc::Ptr eckit:: KDTreeMemory<Traits>:: ID
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef SPMetadata<Traits> eckit:: KDTreeMemory<Traits>:: Metadata
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef Point eckit:: KDTreeMemory<Traits>:: PointType
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef Payload eckit:: KDTreeMemory<Traits>:: PayloadType
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef Node::NodeList eckit:: KDTreeMemory<Traits>:: NodeList
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef SPNodeInfo<Traits, NodeType> eckit:: KDTreeMemory<Traits>:: NodeInfo
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef SPIterator<Traits, NodeType> eckit:: KDTreeMemory<Traits>:: iterator
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
typedef std:: pair<Point, Payload> eckit:: KDTreeMemory<Traits>:: value_type
Function documentation
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
void eckit:: KDTreeMemory<Traits>:: setMetadata(const Point& offset,
const Point& scale)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeInfo eckit:: KDTreeMemory<Traits>:: nodeByID(ID id)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
void eckit:: KDTreeMemory<Traits>:: getMetadata(Point& offset,
Point& scale)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeInfo eckit:: KDTreeMemory<Traits>:: nearestNeighbour(const Point& p)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeList eckit:: KDTreeMemory<Traits>:: findInSphere(const Point& p,
double radius)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeList eckit:: KDTreeMemory<Traits>:: kNearestNeighbours(const Point& p,
size_t k)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeInfo eckit:: KDTreeMemory<Traits>:: nearestNeighbourBruteForce(const Point& p)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeList eckit:: KDTreeMemory<Traits>:: findInSphereBruteForce(const Point& p,
double radius)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
NodeList eckit:: KDTreeMemory<Traits>:: kNearestNeighboursBruteForce(const Point& p,
size_t k)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
template<class Visitor>
void eckit:: KDTreeMemory<Traits>:: visit(Visitor& v)
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
void eckit:: KDTreeMemory<Traits>:: statsReset()
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
void eckit:: KDTreeMemory<Traits>:: statsPrint(std:: ostream& o,
bool fancy) const
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
void eckit:: KDTreeMemory<Traits>:: print(std:: ostream& o) const
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
iterator eckit:: KDTreeMemory<Traits>:: begin()
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
iterator eckit:: KDTreeMemory<Traits>:: end()
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
bool eckit:: KDTreeMemory<Traits>:: empty() const
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
size_t eckit:: KDTreeMemory<Traits>:: size() const
Variable documentation
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
Ptr eckit:: KDTreeMemory<Traits>:: root_
#include <eckit/container/sptree/SPTree.h>
template<class Traits>
Metadata eckit:: KDTreeMemory<Traits>:: meta_