#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 |
KNNResultSet2 (size_t capacity_) | |
size_t | size () const |
DistanceType | worstDist () const |
~KNNResultSet2 () | |
Public Member Functions inherited from rtflann::ResultSet< DistanceType > | |
virtual | ~ResultSet () |
Private Attributes | |
size_t | capacity_ |
std::vector< DistIndex > | dist_index_ |
bool | is_full_ |
DistanceType | worst_dist_ |
Definition at line 304 of file result_set.h.
typedef DistanceIndex<DistanceType> rtflann::KNNResultSet2< DistanceType >::DistIndex |
Definition at line 307 of file result_set.h.
|
inline |
Definition at line 309 of file result_set.h.
|
inline |
Definition at line 317 of file result_set.h.
|
inlinevirtual |
Add another point to result set
dist | distance to point |
index | index of point Pre-conditions: capacity_>0 |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 355 of file result_set.h.
|
inline |
Clears the result set
Definition at line 324 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 388 of file result_set.h.
|
inlinevirtual |
Radius search result set always reports full
Implements rtflann::ResultSet< DistanceType >.
Definition at line 344 of file result_set.h.
|
inline |
Definition at line 335 of file result_set.h.
|
inlinevirtual |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 408 of file result_set.h.
|
private |
Definition at line 414 of file result_set.h.
|
private |
Definition at line 416 of file result_set.h.
|
private |
Definition at line 417 of file result_set.h.
|
private |
Definition at line 415 of file result_set.h.