Public Types | Public Member Functions | Protected Member Functions
rtflann::LinearIndex< Distance > Class Template Reference

#include <linear_index.h>

Inheritance diagram for rtflann::LinearIndex< Distance >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef NNIndex< Distance > BaseClass
typedef Distance::ResultType DistanceType
typedef Distance::ElementType ElementType

Public Member Functions

void addPoints (const Matrix< ElementType > &points, float rebuild_threshold=2)
 Incrementally add points to the index.
BaseClassclone () const
void findNeighbors (ResultSet< DistanceType > &resultSet, const ElementType *vec, const SearchParams &) const
flann_algorithm_t getType () const
 LinearIndex (const IndexParams &params=LinearIndexParams(), Distance d=Distance())
 LinearIndex (const Matrix< ElementType > &input_data, const IndexParams &params=LinearIndexParams(), Distance d=Distance())
 LinearIndex (const LinearIndex &other)
void loadIndex (FILE *stream)
LinearIndexoperator= (LinearIndex other)
void saveIndex (FILE *stream)
template<typename Archive >
void serialize (Archive &ar)
int usedMemory () const
virtual ~LinearIndex ()

Protected Member Functions

void buildIndexImpl ()
void freeIndex ()

Detailed Description

template<typename Distance>
class rtflann::LinearIndex< Distance >

Definition at line 49 of file linear_index.h.


Member Typedef Documentation

template<typename Distance >
typedef NNIndex<Distance> rtflann::LinearIndex< Distance >::BaseClass

Definition at line 56 of file linear_index.h.

template<typename Distance >
typedef Distance::ResultType rtflann::LinearIndex< Distance >::DistanceType

Reimplemented from rtflann::NNIndex< Distance >.

Definition at line 54 of file linear_index.h.

template<typename Distance >
typedef Distance::ElementType rtflann::LinearIndex< Distance >::ElementType

Reimplemented from rtflann::NNIndex< Distance >.

Definition at line 53 of file linear_index.h.


Constructor & Destructor Documentation

template<typename Distance >
rtflann::LinearIndex< Distance >::LinearIndex ( const IndexParams params = LinearIndexParams(),
Distance  d = Distance() 
) [inline]

Definition at line 58 of file linear_index.h.

template<typename Distance >
rtflann::LinearIndex< Distance >::LinearIndex ( const Matrix< ElementType > &  input_data,
const IndexParams params = LinearIndexParams(),
Distance  d = Distance() 
) [inline]

Definition at line 63 of file linear_index.h.

template<typename Distance >
rtflann::LinearIndex< Distance >::LinearIndex ( const LinearIndex< Distance > &  other) [inline]

Definition at line 69 of file linear_index.h.

template<typename Distance >
virtual rtflann::LinearIndex< Distance >::~LinearIndex ( ) [inline, virtual]

Definition at line 79 of file linear_index.h.


Member Function Documentation

template<typename Distance >
void rtflann::LinearIndex< Distance >::addPoints ( const Matrix< ElementType > &  points,
float  rebuild_threshold = 2 
) [inline, virtual]

Incrementally add points to the index.

Parameters:
pointsMatrix with points to be added
rebuild_threshold

Reimplemented from rtflann::NNIndex< Distance >.

Definition at line 88 of file linear_index.h.

template<typename Distance >
void rtflann::LinearIndex< Distance >::buildIndexImpl ( ) [inline, protected, virtual]

Implements rtflann::NNIndex< Distance >.

Definition at line 146 of file linear_index.h.

template<typename Distance >
BaseClass* rtflann::LinearIndex< Distance >::clone ( ) const [inline, virtual]

Implements rtflann::NNIndex< Distance >.

Definition at line 83 of file linear_index.h.

template<typename Distance >
void rtflann::LinearIndex< Distance >::findNeighbors ( ResultSet< DistanceType > &  resultSet,
const ElementType vec,
const SearchParams  
) const [inline, virtual]

Implements rtflann::NNIndex< Distance >.

Definition at line 129 of file linear_index.h.

template<typename Distance >
void rtflann::LinearIndex< Distance >::freeIndex ( ) [inline, protected, virtual]

Implements rtflann::NNIndex< Distance >.

Definition at line 151 of file linear_index.h.

template<typename Distance >
flann_algorithm_t rtflann::LinearIndex< Distance >::getType ( ) const [inline, virtual]

Implements rtflann::IndexBase.

Definition at line 94 of file linear_index.h.

template<typename Distance >
void rtflann::LinearIndex< Distance >::loadIndex ( FILE *  stream) [inline, virtual]

Implements rtflann::IndexBase.

Definition at line 123 of file linear_index.h.

template<typename Distance >
LinearIndex& rtflann::LinearIndex< Distance >::operator= ( LinearIndex< Distance >  other) [inline]

Definition at line 73 of file linear_index.h.

template<typename Distance >
void rtflann::LinearIndex< Distance >::saveIndex ( FILE *  stream) [inline, virtual]

Implements rtflann::IndexBase.

Definition at line 117 of file linear_index.h.

template<typename Distance >
template<typename Archive >
void rtflann::LinearIndex< Distance >::serialize ( Archive &  ar) [inline]

Reimplemented from rtflann::NNIndex< Distance >.

Definition at line 106 of file linear_index.h.

template<typename Distance >
int rtflann::LinearIndex< Distance >::usedMemory ( ) const [inline, virtual]

Implements rtflann::IndexBase.

Definition at line 100 of file linear_index.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