1 #ifndef KDTreeLinkerToolsTemplated_h 2 #define KDTreeLinkerToolsTemplated_h 11 template<
unsigned DIM>
16 template<
typename... Ts>
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];
36 template<
typename DATA,
unsigned DIM>
40 std::array<float,DIM>
dims;
46 template<
typename... Ts>
48 : data(d), dims{ {dimargs...} }
50 template<
typename... Ts>
52 return (data > rhs.
data);
57 template <
typename DATA,
unsigned DIM>
KDTreeNodeT< DATA, DIM > * right
std::array< float, DIM > dimmin
bool operator>(DTCELinkId const &lhs, DTCELinkId const &rhs)
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)