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