Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Private Attributes
nanoflann::KNNResultSet< DistanceType, IndexType, CountType > Class Template Reference

Detailed Description

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

Definition at line 78 of file nanoflann.hpp.

#include <nanoflann.hpp>

Public Member Functions

 KNNResultSet (CountType capacity_)
 
void init (IndexType *indices_, DistanceType *dists_)
 
CountType size () const
 
bool full () const
 
void addPoint (DistanceType dist, IndexType index)
 
DistanceType worstDist () const
 

Private Attributes

IndexType * indices
 
DistanceType * dists
 
CountType capacity
 
CountType count
 

Constructor & Destructor Documentation

◆ KNNResultSet()

template<typename DistanceType , typename IndexType = size_t, typename CountType = size_t>
nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::KNNResultSet ( CountType  capacity_)
inline

Definition at line 86 of file nanoflann.hpp.

Member Function Documentation

◆ addPoint()

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

◆ full()

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

◆ init()

template<typename DistanceType , typename IndexType = size_t, typename CountType = size_t>
void nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::init ( IndexType *  indices_,
DistanceType *  dists_ 
)
inline

◆ size()

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

◆ worstDist()

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

Member Data Documentation

◆ capacity

template<typename DistanceType , typename IndexType = size_t, typename CountType = size_t>
CountType nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::capacity
private

◆ count

template<typename DistanceType , typename IndexType = size_t, typename CountType = size_t>
CountType nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::count
private

◆ dists

template<typename DistanceType , typename IndexType = size_t, typename CountType = size_t>
DistanceType* nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::dists
private

◆ indices

template<typename DistanceType , typename IndexType = size_t, typename CountType = size_t>
IndexType* nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::indices
private

Definition at line 80 of file nanoflann.hpp.




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST