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

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 144 of file nanoflann.hpp.

#include <nanoflann.hpp>

Public Member Functions

 RadiusResultSet (DistanceType radius_, std::vector< std::pair< IndexType, DistanceType > > &indices_dists)
 
 ~RadiusResultSet ()=default
 
void init ()
 
void clear ()
 
size_t size () const
 
bool full () const
 
void addPoint (DistanceType dist, IndexType index)
 
DistanceType worstDist () const
 
void set_radius_and_clear (const DistanceType r)
 Clears the result set and adjusts the search radius. More...
 
std::pair< IndexType, DistanceType > worst_item () const
 Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0. More...
 

Public Attributes

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

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 151 of file nanoflann.hpp.

References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::init().

Here is the call graph for this function:

◆ ~RadiusResultSet()

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

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 165 of file nanoflann.hpp.

◆ clear()

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

Definition at line 159 of file nanoflann.hpp.

◆ full()

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

Definition at line 163 of file nanoflann.hpp.

◆ init()

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

Definition at line 158 of file nanoflann.hpp.

References mrpt::containers::clear().

Here is the call graph for this function:

◆ 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 174 of file nanoflann.hpp.

References mrpt::containers::clear().

Here is the call graph for this function:

◆ size()

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

Definition at line 161 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 184 of file nanoflann.hpp.

◆ worstDist()

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

Definition at line 171 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 149 of file nanoflann.hpp.

◆ radius

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

Definition at line 147 of file nanoflann.hpp.




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020