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

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
 

Member Function Documentation

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

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