Public Member Functions | Private Types | Private Attributes
rtflann::RadiusUniqueResultSet< DistanceType > Class Template Reference

#include <result_set.h>

Inheritance diagram for rtflann::RadiusUniqueResultSet< DistanceType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addPoint (DistanceType dist, size_t index)
void clear ()
bool full () const
 RadiusUniqueResultSet (DistanceType radius)
DistanceType worstDist () const

Private Types

typedef UniqueResultSet
< DistanceType >::DistIndex 
DistIndex

Private Attributes

DistanceType radius_

Detailed Description

template<typename DistanceType>
class rtflann::RadiusUniqueResultSet< DistanceType >

Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors

Definition at line 844 of file result_set.h.


Member Typedef Documentation

template<typename DistanceType >
typedef UniqueResultSet<DistanceType>::DistIndex rtflann::RadiusUniqueResultSet< DistanceType >::DistIndex [private]

Definition at line 890 of file result_set.h.


Constructor & Destructor Documentation

template<typename DistanceType >
rtflann::RadiusUniqueResultSet< DistanceType >::RadiusUniqueResultSet ( DistanceType  radius) [inline]

Constructor

Parameters:
capacitythe number of neighbors to store at max

Definition at line 850 of file result_set.h.


Member Function Documentation

template<typename DistanceType >
void rtflann::RadiusUniqueResultSet< DistanceType >::addPoint ( DistanceType  dist,
size_t  index 
) [inline, virtual]

Add a possible candidate to the best neighbors

Parameters:
distdistance for that neighbor
indexindex of that neighbor

Implements rtflann::ResultSet< DistanceType >.

Definition at line 860 of file result_set.h.

template<typename DistanceType >
void rtflann::RadiusUniqueResultSet< DistanceType >::clear ( ) [inline]

Remove all elements in the set

Definition at line 867 of file result_set.h.

template<typename DistanceType >
bool rtflann::RadiusUniqueResultSet< DistanceType >::full ( ) const [inline, virtual]

Check the status of the set

Returns:
alwys false

Reimplemented from rtflann::UniqueResultSet< DistanceType >.

Definition at line 876 of file result_set.h.

template<typename DistanceType >
DistanceType rtflann::RadiusUniqueResultSet< DistanceType >::worstDist ( ) const [inline, virtual]

The distance of the furthest neighbor If we don't have enough neighbors, it returns the max possible value

Returns:

Reimplemented from rtflann::UniqueResultSet< DistanceType >.

Definition at line 885 of file result_set.h.


Member Data Documentation

template<typename DistanceType >
DistanceType rtflann::RadiusUniqueResultSet< DistanceType >::radius_ [private]

The furthest distance a neighbor can be

Definition at line 895 of file result_set.h.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:43