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 36 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

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

Definition at line 42 of file KDTreeLinkerToolsT.h.

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

Definition at line 46 of file KDTreeLinkerToolsT.h.

47  : data(d), dims{ {dimargs...} }
48  {}
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 50 of file KDTreeLinkerToolsT.h.

References KDTreeNodeInfoT< DATA, DIM >::data.

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

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 39 of file KDTreeLinkerToolsT.h.

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