Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Types | Public Member Functions | Public Attributes
mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM > Struct Template Reference

Detailed Description

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
struct mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >

Internal structure with the KD-tree representation (mainly used to avoid copying pointers with the = operator)

Definition at line 677 of file KDTreeCapable.h.

Inheritance diagram for mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >:
Inheritance graph

Public Types

typedef nanoflann::KDTreeSingleIndexAdaptor< metric_t, Derived, _DIM > kdtree_index_t
 

Public Member Functions

 TKDTreeDataHolder ()
 Init the pointer to NULL. More...
 
 TKDTreeDataHolder (const TKDTreeDataHolder &)
 Copy constructor: It actually does NOT copy the kd-tree, a new object will be created if required! More...
 
TKDTreeDataHolderoperator= (const TKDTreeDataHolder &o)
 Copy operator: It actually does NOT copy the kd-tree, a new object will be created if required! More...
 
 ~TKDTreeDataHolder ()
 Free memory (if allocated) More...
 
void clear ()
 Free memory (if allocated) More...
 

Public Attributes

kdtree_index_tindex
 NULL or the up-to-date index. More...
 
std::vector< num_t > query_point
 
size_t m_dim
 Dimensionality. typ: 2,3. More...
 
size_t m_num_points
 

Member Typedef Documentation

◆ kdtree_index_t

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
typedef nanoflann::KDTreeSingleIndexAdaptor<metric_t,Derived, _DIM> mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::kdtree_index_t

Definition at line 697 of file KDTreeCapable.h.

Constructor & Destructor Documentation

◆ TKDTreeDataHolder() [1/2]

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::TKDTreeDataHolder ( )
inline

Init the pointer to NULL.

Definition at line 680 of file KDTreeCapable.h.

◆ TKDTreeDataHolder() [2/2]

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::TKDTreeDataHolder ( const TKDTreeDataHolder< _DIM > &  )
inline

Copy constructor: It actually does NOT copy the kd-tree, a new object will be created if required!

Definition at line 683 of file KDTreeCapable.h.

◆ ~TKDTreeDataHolder()

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::~TKDTreeDataHolder ( )
inline

Free memory (if allocated)

Definition at line 692 of file KDTreeCapable.h.

Member Function Documentation

◆ clear()

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
void mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::clear ( )
inline

◆ operator=()

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
TKDTreeDataHolder& mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::operator= ( const TKDTreeDataHolder< _DIM > &  o)
inline

Copy operator: It actually does NOT copy the kd-tree, a new object will be created if required!

Definition at line 686 of file KDTreeCapable.h.

Member Data Documentation

◆ index

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
kdtree_index_t* mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::index

◆ m_dim

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
size_t mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::m_dim

◆ m_num_points

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
size_t mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::m_num_points

◆ query_point

template<class Derived, typename num_t = float, typename metric_t = nanoflann::L2_Simple_Adaptor<num_t,Derived>>
template<int _DIM = -1>
std::vector<num_t> mrpt::math::KDTreeCapable< Derived, num_t, metric_t >::TKDTreeDataHolder< _DIM >::query_point



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 8277875f6 Mon Jun 11 02:47:32 2018 +0200 at lun oct 28 01:50:49 CET 2019