Public Types | Public Member Functions | Private Attributes | List of all members
fastrack::KdtreeMap< K, V > Class Template Reference

#include <kdtree_map.h>

Inheritance diagram for fastrack::KdtreeMap< K, V >:
Inheritance graph
[legend]

Public Types

typedef Eigen::Matrix< double, K, 1 > VectorKd
 

Public Member Functions

bool Insert (const std::pair< VectorKd, V > &entry)
 
bool Insert (const VectorKd &key, const V &value)
 
template<typename Container >
bool Insert (const Container &pairs)
 
 KdtreeMap ()
 
std::vector< std::pair< VectorKd, V > > KnnSearch (const VectorKd &query, size_t k) const
 
std::vector< std::pair< VectorKd, V > > RadiusSearch (const VectorKd &query, double r) const
 
const std::vector< std::pair< VectorKd, V > > & Registry () const
 
size_t Size () const
 
 ~KdtreeMap ()
 

Private Attributes

std::unique_ptr< flann::KDTreeIndex< flann::L2< double > > > index_
 
std::vector< std::pair< VectorKd, V > > registry_
 

Additional Inherited Members

- Private Member Functions inherited from fastrack::Uncopyable
 Uncopyable ()
 
virtual ~Uncopyable ()
 

Detailed Description

template<int K, typename V>
class fastrack::KdtreeMap< K, V >

Definition at line 58 of file kdtree_map.h.

Member Typedef Documentation

template<int K, typename V>
typedef Eigen::Matrix<double, K, 1> fastrack::KdtreeMap< K, V >::VectorKd

Definition at line 60 of file kdtree_map.h.

Constructor & Destructor Documentation

template<int K, typename V>
fastrack::KdtreeMap< K, V >::~KdtreeMap ( )
inline

Definition at line 62 of file kdtree_map.h.

template<int K, typename V>
fastrack::KdtreeMap< K, V >::KdtreeMap ( )
inlineexplicit

Definition at line 63 of file kdtree_map.h.

Member Function Documentation

template<int K, typename V>
bool fastrack::KdtreeMap< K, V >::Insert ( const std::pair< VectorKd, V > &  entry)

Definition at line 105 of file kdtree_map.h.

template<int K, typename V>
bool fastrack::KdtreeMap< K, V >::Insert ( const VectorKd key,
const V &  value 
)
inline

Definition at line 67 of file kdtree_map.h.

template<int K, typename V>
template<typename Container >
bool fastrack::KdtreeMap< K, V >::Insert ( const Container &  pairs)
inline

Definition at line 73 of file kdtree_map.h.

template<int K, typename V >
std::vector< std::pair< typename KdtreeMap< K, V >::VectorKd, V > > fastrack::KdtreeMap< K, V >::KnnSearch ( const VectorKd query,
size_t  k 
) const

Definition at line 132 of file kdtree_map.h.

template<int K, typename V >
std::vector< std::pair< typename KdtreeMap< K, V >::VectorKd, V > > fastrack::KdtreeMap< K, V >::RadiusSearch ( const VectorKd query,
double  r 
) const

Definition at line 165 of file kdtree_map.h.

template<int K, typename V>
const std::vector<std::pair<VectorKd, V> >& fastrack::KdtreeMap< K, V >::Registry ( ) const
inline

Definition at line 89 of file kdtree_map.h.

template<int K, typename V>
size_t fastrack::KdtreeMap< K, V >::Size ( ) const
inline

Definition at line 92 of file kdtree_map.h.

Member Data Documentation

template<int K, typename V>
std::unique_ptr<flann::KDTreeIndex<flann::L2<double> > > fastrack::KdtreeMap< K, V >::index_
private

Definition at line 97 of file kdtree_map.h.

template<int K, typename V>
std::vector<std::pair<VectorKd, V> > fastrack::KdtreeMap< K, V >::registry_
private

Definition at line 98 of file kdtree_map.h.


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


fastrack
Author(s): David Fridovich-Keil
autogenerated on Mon Aug 3 2020 21:28:37