Public Member Functions | Private Attributes | List of all members
rtflann::KNNRadiusUniqueResultSet< DistanceType > Class Template Reference

#include <result_set.h>

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

Public Member Functions

void clear ()
 
 KNNRadiusUniqueResultSet (DistanceType radius, size_t capacity)
 
- Public Member Functions inherited from rtflann::KNNUniqueResultSet< DistanceType >
void addPoint (DistanceType dist, size_t index)
 
void clear ()
 
 KNNUniqueResultSet (unsigned int capacity)
 
- Public Member Functions inherited from rtflann::UniqueResultSet< DistanceType >
void copy (size_t *indices, DistanceType *dist, int n_neighbors, bool sorted=true)
 
bool full () const
 
size_t size () const
 
 UniqueResultSet ()
 
DistanceType worstDist () const
 
- Public Member Functions inherited from rtflann::ResultSet< DistanceType >
virtual ~ResultSet ()
 

Private Attributes

DistanceType radius_
 

Additional Inherited Members

- Protected Types inherited from rtflann::KNNUniqueResultSet< DistanceType >
typedef UniqueResultSet< DistanceType >::DistIndex DistIndex
 
- Protected Attributes inherited from rtflann::KNNUniqueResultSet< DistanceType >
unsigned int capacity_
 
- Protected Attributes inherited from rtflann::UniqueResultSet< DistanceType >
std::set< DistIndexdist_indices_
 
bool is_full_
 
DistanceType worst_distance_
 

Detailed Description

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

Class that holds the k NN neighbors within a radius distance

Definition at line 931 of file result_set.h.

Constructor & Destructor Documentation

◆ KNNRadiusUniqueResultSet()

template<typename DistanceType >
rtflann::KNNRadiusUniqueResultSet< DistanceType >::KNNRadiusUniqueResultSet ( DistanceType  radius,
size_t  capacity 
)
inline

Constructor

Parameters
capacitythe number of neighbors to store at max

Definition at line 937 of file result_set.h.

Member Function Documentation

◆ clear()

template<typename DistanceType >
void rtflann::KNNRadiusUniqueResultSet< DistanceType >::clear ( )
inline

Remove all elements in the set

Definition at line 945 of file result_set.h.

Member Data Documentation

◆ radius_

template<typename DistanceType >
DistanceType rtflann::KNNRadiusUniqueResultSet< DistanceType >::radius_
private

The maximum distance of a neighbor

Definition at line 957 of file result_set.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:29