gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
nanoflann::KNNResultSet< DistanceType, IndexType, CountType > Class Template Reference

#include <nanoflann.hpp>

Public Member Functions

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

Private Attributes

IndexType * indices
 
DistanceType * dists
 
CountType capacity
 
CountType count
 

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.

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>
bool nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::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

Definition at line 114 of file nanoflann.hpp.

◆ full()

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

Definition at line 104 of file nanoflann.hpp.

◆ 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()

◆ worstDist()

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

Definition at line 140 of file nanoflann.hpp.

Member Data Documentation

◆ capacity

◆ count

◆ dists

◆ indices

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

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