1 #ifndef KDTreeLinkerToolsTemplated_h 2 #define KDTreeLinkerToolsTemplated_h 10 template<
unsigned DIM>
15 template<
typename... Ts>
17 static_assert(
sizeof...(dimargs) == 2*
DIM,
"Constructor requires 2*DIM args");
18 std::vector<float> dims = {dimargs...};
19 for(
unsigned i = 0;
i <
DIM; ++
i ) {
20 dimmin[
i] = dims[2*
i];
21 dimmax[
i] = dims[2*
i+1];
35 template<
typename DATA,
unsigned DIM>
39 std::array<float,DIM>
dims;
45 template<
typename... Ts>
47 : data(d), dims{ {dimargs...} }
49 template<
typename... Ts>
51 return (data > rhs.
data);
56 template <
typename DATA,
unsigned DIM>
KDTreeNodeT< DATA, DIM > * right
std::array< float, DIM > dimmin
bool operator>(View< T > const &, View< T > const &)
std::array< float, DIM > dims
void setAttributs(const KDTreeBoxT< DIM > ®ionBox)
KDTreeNodeInfoT< DATA, DIM > info
std::array< float, DIM > dimmax
void setAttributs(const KDTreeBoxT< DIM > ®ionBox, const KDTreeNodeInfoT< DATA, DIM > &infoToStore)
KDTreeNodeInfoT(const DATA &d, Ts...dimargs)