CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
KDTreeBoxT< DIM > Struct Template Reference

#include <KDTreeLinkerToolsT.h>

Public Member Functions

template<typename... Ts>
 KDTreeBoxT (Ts...dimargs)
 
 KDTreeBoxT ()
 

Public Attributes

std::array< float, DIMdimmax
 
std::array< float, DIMdimmin
 

Detailed Description

template<unsigned DIM>
struct KDTreeBoxT< DIM >

Definition at line 12 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

template<unsigned DIM>
template<typename... Ts>
KDTreeBoxT< DIM >::KDTreeBoxT ( Ts...  dimargs)
inline

Definition at line 17 of file KDTreeLinkerToolsT.h.

17  {
18  static_assert(sizeof...(dimargs) == 2*DIM,"Constructor requires 2*DIM args");
19  std::vector<float> dims = {dimargs...};
20  for( unsigned i = 0; i < DIM; ++i ) {
21  dimmin[i] = dims[2*i];
22  dimmax[i] = dims[2*i+1];
23  }
24  }
std::array< float, DIM > dimmin
#define DIM
std::array< float, DIM > dimmax
template<unsigned DIM>
KDTreeBoxT< DIM >::KDTreeBoxT ( )
inline

Definition at line 26 of file KDTreeLinkerToolsT.h.

26 {}

Member Data Documentation

template<unsigned DIM>
std::array<float,DIM> KDTreeBoxT< DIM >::dimmax
template<unsigned DIM>
std::array<float,DIM> KDTreeBoxT< DIM >::dimmin