Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Public Attributes
mrpt::math::KDTreeCapable::TKDTreeDataHolder Struct Reference

Detailed Description

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

Inheritance diagram for mrpt::math::KDTreeCapable::TKDTreeDataHolder:
Inheritance graph
[legend]

List of all members.

Public Types

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

Public Member Functions

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

Public Attributes

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

Member Typedef Documentation

Definition at line 600 of file KDTreeCapable.h.


Constructor & Destructor Documentation

mrpt::math::KDTreeCapable::TKDTreeDataHolder::TKDTreeDataHolder ( ) [inline]

Init the pointer to NULL.

Definition at line 583 of file KDTreeCapable.h.

mrpt::math::KDTreeCapable::TKDTreeDataHolder::TKDTreeDataHolder ( const TKDTreeDataHolder o) [inline]

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

Definition at line 586 of file KDTreeCapable.h.

mrpt::math::KDTreeCapable::TKDTreeDataHolder::~TKDTreeDataHolder ( ) [inline]

Free memory (if allocated)

Definition at line 595 of file KDTreeCapable.h.


Member Function Documentation

void mrpt::math::KDTreeCapable::TKDTreeDataHolder::clear ( ) [inline]
TKDTreeDataHolder& mrpt::math::KDTreeCapable::TKDTreeDataHolder::operator= ( const TKDTreeDataHolder o) [inline]

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

Definition at line 589 of file KDTreeCapable.h.


Member Data Documentation




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011