#include <result_set.h>
Public Types | |
typedef DistanceIndex< DistanceType > | DistIndex |
Public Member Functions | |
void | addPoint (DistanceType dist, size_t index) |
void | clear () |
void | copy (size_t *indices, DistanceType *dists, size_t num_elements, bool sorted=true) |
bool | full () const |
KNNResultSet (int capacity) | |
size_t | size () const |
DistanceType | worstDist () const |
~KNNResultSet () | |
Public Member Functions inherited from rtflann::ResultSet< DistanceType > | |
virtual | ~ResultSet () |
Private Attributes | |
size_t | capacity_ |
size_t | count_ |
std::vector< DistIndex > | dist_index_ |
DistanceType | worst_distance_ |
K-Nearest neighbour result set. Ensures that the elements inserted are unique
Definition at line 233 of file result_set.h.
typedef DistanceIndex<DistanceType> rtflann::KNNResultSet< DistanceType >::DistIndex |
Definition at line 236 of file result_set.h.
|
inline |
Definition at line 238 of file result_set.h.
|
inline |
Definition at line 245 of file result_set.h.
|
inlinevirtual |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 271 of file result_set.h.
|
inline |
Clears the result set
Definition at line 253 of file result_set.h.
|
inline |
Copy indices and distances to output buffers
indices | |
dists | |
num_elements | Number of elements to copy |
sorted | Indicates if results should be sorted |
Definition at line 307 of file result_set.h.
|
inlinevirtual |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 265 of file result_set.h.
|
inline |
Definition at line 260 of file result_set.h.
|
inlinevirtual |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 316 of file result_set.h.
|
private |
Definition at line 322 of file result_set.h.
|
private |
Definition at line 323 of file result_set.h.
|
private |
Definition at line 325 of file result_set.h.
|
private |
Definition at line 324 of file result_set.h.