#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 |
KNNRadiusResultSet (DistanceType radius_, size_t capacity_) | |
size_t | size () const |
DistanceType | worstDist () const |
~KNNRadiusResultSet () | |
![]() | |
virtual | ~ResultSet () |
Private Attributes | |
size_t | capacity_ |
std::vector< DistIndex > | dist_index_ |
bool | is_heap_ |
DistanceType | radius_ |
DistanceType | worst_dist_ |
Bounded radius result set. It limits the number of elements it can hold to a preset capacity.
Definition at line 555 of file result_set.h.
typedef DistanceIndex<DistanceType> rtflann::KNNRadiusResultSet< DistanceType >::DistIndex |
Definition at line 558 of file result_set.h.
|
inline |
Definition at line 560 of file result_set.h.
|
inline |
Definition at line 568 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 606 of file result_set.h.
|
inline |
Clears the result set
Definition at line 575 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 640 of file result_set.h.
|
inlinevirtual |
Radius search result set always reports full
Implements rtflann::ResultSet< DistanceType >.
Definition at line 595 of file result_set.h.
|
inline |
Definition at line 586 of file result_set.h.
|
inlinevirtual |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 660 of file result_set.h.
|
private |
Definition at line 668 of file result_set.h.
|
private |
Definition at line 670 of file result_set.h.
|
private |
Definition at line 666 of file result_set.h.
|
private |
Definition at line 667 of file result_set.h.
|
private |
Definition at line 669 of file result_set.h.