Public Member Functions | Public Attributes | List of all members
nanoflann::RadiusResultSet< DistanceType, IndexType > Class Template Reference

#include <nanoflann.hpp>

Public Member Functions

void addPoint (DistanceType dist, IndexType index)
 
void clear ()
 
bool full () const
 
void init ()
 
 RadiusResultSet (DistanceType radius_, std::vector< std::pair< IndexType, DistanceType > > &indices_dists)
 
void set_radius_and_clear (const DistanceType r)
 
size_t size () const
 
std::pair< IndexType, DistanceType > worst_item () const
 
DistanceType worstDist () const
 
 ~RadiusResultSet ()
 

Public Attributes

std::vector< std::pair< IndexType, DistanceType > > & m_indices_dists
 
const DistanceType radius
 

Detailed Description

template<typename DistanceType, typename IndexType = size_t>
class nanoflann::RadiusResultSet< DistanceType, IndexType >

A result-set class used when performing a radius based search.

Definition at line 159 of file nanoflann.hpp.

Constructor & Destructor Documentation

◆ RadiusResultSet()

template<typename DistanceType , typename IndexType = size_t>
nanoflann::RadiusResultSet< DistanceType, IndexType >::RadiusResultSet ( DistanceType  radius_,
std::vector< std::pair< IndexType, DistanceType > > &  indices_dists 
)
inline

Definition at line 166 of file nanoflann.hpp.

◆ ~RadiusResultSet()

template<typename DistanceType , typename IndexType = size_t>
nanoflann::RadiusResultSet< DistanceType, IndexType >::~RadiusResultSet ( )
inline

Definition at line 171 of file nanoflann.hpp.

Member Function Documentation

◆ addPoint()

template<typename DistanceType , typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::addPoint ( DistanceType  dist,
IndexType  index 
)
inline

Definition at line 180 of file nanoflann.hpp.

◆ clear()

template<typename DistanceType , typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::clear ( )
inline

Definition at line 174 of file nanoflann.hpp.

◆ full()

template<typename DistanceType , typename IndexType = size_t>
bool nanoflann::RadiusResultSet< DistanceType, IndexType >::full ( ) const
inline

Definition at line 178 of file nanoflann.hpp.

◆ init()

template<typename DistanceType , typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::init ( )
inline

Definition at line 173 of file nanoflann.hpp.

◆ set_radius_and_clear()

template<typename DistanceType , typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::set_radius_and_clear ( const DistanceType  r)
inline

Clears the result set and adjusts the search radius.

Definition at line 189 of file nanoflann.hpp.

◆ size()

template<typename DistanceType , typename IndexType = size_t>
size_t nanoflann::RadiusResultSet< DistanceType, IndexType >::size ( ) const
inline

Definition at line 176 of file nanoflann.hpp.

◆ worst_item()

template<typename DistanceType , typename IndexType = size_t>
std::pair<IndexType,DistanceType> nanoflann::RadiusResultSet< DistanceType, IndexType >::worst_item ( ) const
inline

Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0

Definition at line 199 of file nanoflann.hpp.

◆ worstDist()

template<typename DistanceType , typename IndexType = size_t>
DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::worstDist ( ) const
inline

Definition at line 186 of file nanoflann.hpp.

Member Data Documentation

◆ m_indices_dists

template<typename DistanceType , typename IndexType = size_t>
std::vector<std::pair<IndexType,DistanceType> >& nanoflann::RadiusResultSet< DistanceType, IndexType >::m_indices_dists

Definition at line 164 of file nanoflann.hpp.

◆ radius

template<typename DistanceType , typename IndexType = size_t>
const DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::radius

Definition at line 162 of file nanoflann.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:28