template class nanoflann::KNNResultSetΒΆ

#include <nanoflann.hpp>

template <
    typename DistanceType,
    typename IndexType = size_t,
    typename CountType = size_t
    >
class KNNResultSet
{
public:
    // construction

    KNNResultSet(CountType capacity_);

    //
methods

    void init(
        IndexType* indices_,
        DistanceType* dists_
        );

    CountType size() const;
    bool full() const;

    void addPoint(
        DistanceType dist,
        IndexType index
        );

    DistanceType worstDist() const;
};