#include <eckit/container/BSPTree.h>
template<class Traits, class Partition>
BSPTreeMemory class
Base classes
-
template<class Traits, class Partition>class BSPTreeX<TT<Traits, KDMemory>, Partition>
Public types
- using Alloc = Traits::Alloc
- using Point = Traits::Point
- using Payload = Traits::Payload
- using Ptr = Alloc::Ptr
- using ID = Alloc::Ptr
- using Node = NodeType
- using Metadata = SPMetadata<Traits>
- using PointType = Point
- using PayloadType = Payload
- using NodeList = Node::NodeList
- using NodeInfo = SPNodeInfo<Traits, NodeType>
- using Value = Node::Value
- using iterator = SPIterator<Traits, NodeType>
-
using value_type = std::
pair<Point, Payload>
Constructors, destructors, conversion operators
Public functions
- void build(Container& nodes)
- 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, class Partition>
typedef Traits::Point eckit:: BSPTreeMemory<Traits, Partition>:: Point
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Traits::Payload eckit:: BSPTreeMemory<Traits, Partition>:: Payload
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Alloc::Ptr eckit:: BSPTreeMemory<Traits, Partition>:: Ptr
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Alloc::Ptr eckit:: BSPTreeMemory<Traits, Partition>:: ID
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef NodeType eckit:: BSPTreeMemory<Traits, Partition>:: Node
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef SPMetadata<Traits> eckit:: BSPTreeMemory<Traits, Partition>:: Metadata
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Point eckit:: BSPTreeMemory<Traits, Partition>:: PointType
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Payload eckit:: BSPTreeMemory<Traits, Partition>:: PayloadType
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Node::NodeList eckit:: BSPTreeMemory<Traits, Partition>:: NodeList
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef SPNodeInfo<Traits, NodeType> eckit:: BSPTreeMemory<Traits, Partition>:: NodeInfo
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef Node::Value eckit:: BSPTreeMemory<Traits, Partition>:: Value
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef SPIterator<Traits, NodeType> eckit:: BSPTreeMemory<Traits, Partition>:: iterator
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
typedef std:: pair<Point, Payload> eckit:: BSPTreeMemory<Traits, Partition>:: value_type
Function documentation
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
void eckit:: BSPTreeMemory<Traits, Partition>:: setMetadata(const Point& offset,
const Point& scale)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeInfo eckit:: BSPTreeMemory<Traits, Partition>:: nodeByID(ID id)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
void eckit:: BSPTreeMemory<Traits, Partition>:: getMetadata(Point& offset,
Point& scale)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeInfo eckit:: BSPTreeMemory<Traits, Partition>:: nearestNeighbour(const Point& p)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeList eckit:: BSPTreeMemory<Traits, Partition>:: findInSphere(const Point& p,
double radius)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeList eckit:: BSPTreeMemory<Traits, Partition>:: kNearestNeighbours(const Point& p,
size_t k)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeInfo eckit:: BSPTreeMemory<Traits, Partition>:: nearestNeighbourBruteForce(const Point& p)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeList eckit:: BSPTreeMemory<Traits, Partition>:: findInSphereBruteForce(const Point& p,
double radius)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
NodeList eckit:: BSPTreeMemory<Traits, Partition>:: kNearestNeighboursBruteForce(const Point& p,
size_t k)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
template<class Visitor>
void eckit:: BSPTreeMemory<Traits, Partition>:: visit(Visitor& v)
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
void eckit:: BSPTreeMemory<Traits, Partition>:: statsReset()
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
void eckit:: BSPTreeMemory<Traits, Partition>:: statsPrint(std:: ostream& o,
bool fancy) const
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
void eckit:: BSPTreeMemory<Traits, Partition>:: print(std:: ostream& o) const
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
iterator eckit:: BSPTreeMemory<Traits, Partition>:: begin()
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
iterator eckit:: BSPTreeMemory<Traits, Partition>:: end()
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
bool eckit:: BSPTreeMemory<Traits, Partition>:: empty() const
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
size_t eckit:: BSPTreeMemory<Traits, Partition>:: size() const
Variable documentation
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
Ptr eckit:: BSPTreeMemory<Traits, Partition>:: root_
#include <eckit/container/sptree/SPTree.h>
template<class Traits, class Partition>
Metadata eckit:: BSPTreeMemory<Traits, Partition>:: meta_