MRPT  2.0.1
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



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020