nanoflann
C++ header-only ANN library
Public Types | Public Member Functions | Public Attributes | List of all members
nanoflann::RadiusResultSet< _DistanceType, _IndexType > Class Template Reference

#include <nanoflann.hpp>

Public Types

typedef _DistanceType DistanceType
 
typedef _IndexType IndexType
 

Public Member Functions

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

Public Attributes

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

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.

Member Function Documentation

◆ addPoint()

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

Called during search to add an element matching the criteria.

Returns
true if the search should be continued, false if the results are sufficient

◆ 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


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