nanoflann
C++ header-only ANN library
 All Classes Functions Variables Typedefs Groups Pages
Public Member Functions | Public Attributes | List of all members
nanoflann::RadiusResultSet< DistanceType, IndexType > Class Template Reference

#include <nanoflann.hpp>

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

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
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: