CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
KDTreeNodeInfoT< DATA, DIM > Struct Template Reference

#include <KDTreeLinkerToolsT.h>

Public Member Functions

 KDTreeNodeInfoT ()
 
template<typename... Ts>
 KDTreeNodeInfoT (const DATA &d, Ts...dimargs)
 
template<typename... Ts>
bool operator> (const KDTreeNodeInfoT &rhs) const
 

Public Attributes

DATA data
 
std::array< float, DIMdims
 

Detailed Description

template<typename DATA, unsigned DIM>
struct KDTreeNodeInfoT< DATA, DIM >

Definition at line 37 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

template<typename DATA, unsigned DIM>
KDTreeNodeInfoT< DATA, DIM >::KDTreeNodeInfoT ( )
inline

Definition at line 43 of file KDTreeLinkerToolsT.h.

44  {}
template<typename DATA, unsigned DIM>
template<typename... Ts>
KDTreeNodeInfoT< DATA, DIM >::KDTreeNodeInfoT ( const DATA &  d,
Ts...  dimargs 
)
inline

Definition at line 47 of file KDTreeLinkerToolsT.h.

48  : data(d), dims{ {dimargs...} }
49  {}
std::array< float, DIM > dims

Member Function Documentation

template<typename DATA, unsigned DIM>
template<typename... Ts>
bool KDTreeNodeInfoT< DATA, DIM >::operator> ( const KDTreeNodeInfoT< DATA, DIM > &  rhs) const
inline

Definition at line 51 of file KDTreeLinkerToolsT.h.

References KDTreeNodeInfoT< DATA, DIM >::data.

51  {
52  return (data > rhs.data);
53  }

Member Data Documentation

template<typename DATA, unsigned DIM>
DATA KDTreeNodeInfoT< DATA, DIM >::data
template<typename DATA, unsigned DIM>
std::array<float,DIM> KDTreeNodeInfoT< DATA, DIM >::dims

Definition at line 40 of file KDTreeLinkerToolsT.h.

Referenced by KDTreeLinkerAlgo< DATA, DIM >::medianSearch().