#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 |
| RadiusResultSet (DistanceType radius_) | |
| size_t | size () const |
| DistanceType | worstDist () const |
| ~RadiusResultSet () | |
Private Attributes | |
| std::vector< DistIndex > | dist_index_ |
| DistanceType | radius_ |
Unbounded radius result set. It will hold as many elements as are added to it.
Definition at line 426 of file result_set.h.
| typedef DistanceIndex<DistanceType> rtflann::RadiusResultSet< DistanceType >::DistIndex |
Definition at line 429 of file result_set.h.
| rtflann::RadiusResultSet< DistanceType >::RadiusResultSet | ( | DistanceType | radius_ | ) | [inline] |
Definition at line 431 of file result_set.h.
| rtflann::RadiusResultSet< DistanceType >::~RadiusResultSet | ( | ) | [inline] |
Definition at line 439 of file result_set.h.
| void rtflann::RadiusResultSet< DistanceType >::addPoint | ( | DistanceType | dist, |
| size_t | index | ||
| ) | [inline, virtual] |
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 475 of file result_set.h.
| void rtflann::RadiusResultSet< DistanceType >::clear | ( | ) | [inline] |
Clears the result set
Definition at line 446 of file result_set.h.
| void rtflann::RadiusResultSet< DistanceType >::copy | ( | size_t * | indices, |
| DistanceType * | dists, | ||
| size_t | num_elements, | ||
| bool | sorted = true |
||
| ) | [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 490 of file result_set.h.
| bool rtflann::RadiusResultSet< DistanceType >::full | ( | ) | const [inline, virtual] |
Radius search result set always reports full
Implements rtflann::ResultSet< DistanceType >.
Definition at line 464 of file result_set.h.
| size_t rtflann::RadiusResultSet< DistanceType >::size | ( | ) | const [inline] |
Definition at line 455 of file result_set.h.
| DistanceType rtflann::RadiusResultSet< DistanceType >::worstDist | ( | ) | const [inline, virtual] |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 510 of file result_set.h.
std::vector<DistIndex> rtflann::RadiusResultSet< DistanceType >::dist_index_ [private] |
Definition at line 517 of file result_set.h.
DistanceType rtflann::RadiusResultSet< DistanceType >::radius_ [private] |
Definition at line 516 of file result_set.h.