#include <result_set.h>

Classes | |
| struct | DistIndex |
Public Member Functions | |
| void | copy (size_t *indices, DistanceType *dist, int n_neighbors, bool sorted=true) |
| bool | full () const |
| size_t | size () const |
| UniqueResultSet () | |
| DistanceType | worstDist () const |
Protected Attributes | |
| std::set< DistIndex > | dist_indices_ |
| bool | is_full_ |
| DistanceType | worst_distance_ |
Class that holds the k NN neighbors
Definition at line 704 of file result_set.h.
| rtflann::UniqueResultSet< DistanceType >::UniqueResultSet | ( | ) | [inline] |
Default cosntructor
Definition at line 722 of file result_set.h.
| void rtflann::UniqueResultSet< DistanceType >::copy | ( | size_t * | indices, |
| DistanceType * | dist, | ||
| int | n_neighbors, | ||
| bool | sorted = true |
||
| ) | [inline] |
Copy the set to two C arrays
| indices | pointer to a C array of indices |
| dist | pointer to a C array of distances |
| n_neighbors | the number of neighbors to copy |
Definition at line 740 of file result_set.h.
| bool rtflann::UniqueResultSet< DistanceType >::full | ( | ) | const [inline, virtual] |
Check the status of the set
Implements rtflann::ResultSet< DistanceType >.
Reimplemented in rtflann::RadiusUniqueResultSet< DistanceType >.
Definition at line 730 of file result_set.h.
| size_t rtflann::UniqueResultSet< DistanceType >::size | ( | ) | const [inline] |
| DistanceType rtflann::UniqueResultSet< DistanceType >::worstDist | ( | ) | const [inline, virtual] |
The distance of the furthest neighbor If we don't have enough neighbors, it returns the max possible value
Implements rtflann::ResultSet< DistanceType >.
Reimplemented in rtflann::RadiusUniqueResultSet< DistanceType >.
Definition at line 764 of file result_set.h.
std::set<DistIndex> rtflann::UniqueResultSet< DistanceType >::dist_indices_ [protected] |
The best candidates so far
Definition at line 776 of file result_set.h.
bool rtflann::UniqueResultSet< DistanceType >::is_full_ [protected] |
Flag to say if the set is full
Definition at line 770 of file result_set.h.
DistanceType rtflann::UniqueResultSet< DistanceType >::worst_distance_ [protected] |
The worst distance found so far
Definition at line 773 of file result_set.h.