CMS 3D CMS Logo

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

#include <KDTreeLinkerAlgo.h>

Public Member Functions

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

Public Attributes

DATA data
 
std::array< float, DIMdims
 

Detailed Description

template<typename DATA, unsigned DIM = 2>
struct KDTreeNodeInfo< DATA, DIM >

Definition at line 34 of file KDTreeLinkerAlgo.h.

Constructor & Destructor Documentation

◆ KDTreeNodeInfo() [1/2]

template<typename DATA, unsigned DIM = 2>
KDTreeNodeInfo< DATA, DIM >::KDTreeNodeInfo ( )
inline

Definition at line 39 of file KDTreeLinkerAlgo.h.

39 {}

◆ KDTreeNodeInfo() [2/2]

template<typename DATA, unsigned DIM = 2>
template<typename... Ts>
KDTreeNodeInfo< DATA, DIM >::KDTreeNodeInfo ( const DATA &  d,
Ts...  dimargs 
)
inline

Definition at line 42 of file KDTreeLinkerAlgo.h.

42 : data(d), dims{{dimargs...}} {}

Member Function Documentation

◆ operator>()

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

Definition at line 44 of file KDTreeLinkerAlgo.h.

44  {
45  return (data > rhs.data);
46  }

References KDTreeNodeInfo< DATA, DIM >::data.

Member Data Documentation

◆ data

template<typename DATA, unsigned DIM = 2>
DATA KDTreeNodeInfo< DATA, DIM >::data

◆ dims

template<typename DATA, unsigned DIM = 2>
std::array<float, DIM> KDTreeNodeInfo< DATA, DIM >::dims
KDTreeNodeInfo::data
DATA data
Definition: KDTreeLinkerAlgo.h:35
KDTreeNodeInfo::dims
std::array< float, DIM > dims
Definition: KDTreeLinkerAlgo.h:36
ztail.d
d
Definition: ztail.py:151