Luanti 5.16.0-dev
Loading...
Searching...
No Matches
k_d_tree::SortedPoints< Dim, Component > Class Template Reference

#include <k_d_tree.h>

Public Member Functions

 SortedPoints ()
 SortedPoints (const std::array< Component, Dim > &point)
 Single point.
 SortedPoints (size_t n, const std::array< Component const *, Dim > ptrs)
 Sort points.
 SortedPoints (const SortedPoints &a, const SortedPoints &b)
 Merge two sets of sorted points.
size_t size () const

Public Attributes

Points< Dim, Component > points
SortedIndices< Dim > indices

Constructor & Destructor Documentation

◆ SortedPoints() [1/4]

template<uint8_t Dim, class Component>
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( )
inline

References indices, and points.

Referenced by SortedPoints().

Here is the caller graph for this function:

◆ SortedPoints() [2/4]

template<uint8_t Dim, class Component>
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( const std::array< Component, Dim > & point)
inline

Single point.

References indices, and points.

◆ SortedPoints() [3/4]

template<uint8_t Dim, class Component>
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( size_t n,
const std::array< Component const *, Dim > ptrs )
inline

Sort points.

References indices, and points.

◆ SortedPoints() [4/4]

template<uint8_t Dim, class Component>
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( const SortedPoints< Dim, Component > & a,
const SortedPoints< Dim, Component > & b )
inline

Merge two sets of sorted points.

References SortedPoints(), indices, k_d_tree::SortedIndices< Dim >::newUninitialized(), points, and size().

Here is the call graph for this function:

Member Function Documentation

◆ size()

template<uint8_t Dim, class Component>
size_t k_d_tree::SortedPoints< Dim, Component >::size ( ) const
inline

References points.

Referenced by SortedPoints().

Here is the caller graph for this function:

Member Data Documentation

◆ indices

template<uint8_t Dim, class Component>
SortedIndices<Dim> k_d_tree::SortedPoints< Dim, Component >::indices

◆ points

template<uint8_t Dim, class Component>
Points<Dim, Component> k_d_tree::SortedPoints< Dim, Component >::points

The documentation for this class was generated from the following file: