Peano
Loading...
Searching...
No Matches
exahype2::ccz4::ahf::CartesianSpatialIndex Class Reference

Immutable k-d tree; concurrent nearest-neighbour queries are read-only. More...

#include <interpolation.h>

Collaboration diagram for exahype2::ccz4::ahf::CartesianSpatialIndex:

Public Member Functions

 CartesianSpatialIndex (const GridData &gridData)
std::vector< std::size_t > findNearest (const GridCoordinate &target, std::size_t neighbourCount) const
std::vector< std::size_t > findWithinRadius (const GridCoordinate &target, double radius) const
 Return all cells with Euclidean distance strictly less than radius.
std::size_t size () const

Private Attributes

std::shared_ptr< const Implementation > _implementation

Detailed Description

Immutable k-d tree; concurrent nearest-neighbour queries are read-only.

Definition at line 62 of file interpolation.h.

Constructor & Destructor Documentation

◆ CartesianSpatialIndex()

exahype2::ccz4::ahf::CartesianSpatialIndex::CartesianSpatialIndex ( const GridData & gridData)
explicit

Member Function Documentation

◆ findNearest()

std::vector< std::size_t > exahype2::ccz4::ahf::CartesianSpatialIndex::findNearest ( const GridCoordinate & target,
std::size_t neighbourCount ) const

◆ findWithinRadius()

std::vector< std::size_t > exahype2::ccz4::ahf::CartesianSpatialIndex::findWithinRadius ( const GridCoordinate & target,
double radius ) const

Return all cells with Euclidean distance strictly less than radius.

◆ size()

std::size_t exahype2::ccz4::ahf::CartesianSpatialIndex::size ( ) const

Field Documentation

◆ _implementation

std::shared_ptr<const Implementation> exahype2::ccz4::ahf::CartesianSpatialIndex::_implementation
private

Definition at line 78 of file interpolation.h.


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