@@ -129,7 +129,7 @@ class KdTreeBuilder {
129
129
using Index = typename Traits::IndexType;
130
130
using Scalar = typename Traits::ScalarType;
131
131
using Space = typename Traits::SpaceType;
132
- using SequenceBox = SequenceBox<Scalar, Dim_>;
132
+ using SequenceBoxType = SequenceBox<Scalar, Dim_>;
133
133
134
134
public:
135
135
// ! \brief Node type supported by KdTreeBuilder based on SpaceTag.
@@ -152,8 +152,8 @@ class KdTreeBuilder {
152
152
nodes_{*nodes} {}
153
153
154
154
// ! \brief Creates the full set of nodes for a KdTree.
155
- inline Node* operator ()(SequenceBox const & root_box) const {
156
- SequenceBox box (root_box);
155
+ inline Node* operator ()(SequenceBoxType const & root_box) const {
156
+ SequenceBoxType box (root_box);
157
157
return SplitIndices (0 , 0 , Traits::SpaceNpts (space_), &box);
158
158
}
159
159
@@ -172,7 +172,7 @@ class KdTreeBuilder {
172
172
Index const depth,
173
173
Index const offset,
174
174
Index const size,
175
- SequenceBox * box) const {
175
+ SequenceBoxType * box) const {
176
176
Node* node = nodes_.Allocate ();
177
177
//
178
178
if (size <= max_leaf_size_) {
@@ -203,7 +203,7 @@ class KdTreeBuilder {
203
203
Index const left_size = split_idx - offset;
204
204
Index const right_size = size - left_size;
205
205
206
- SequenceBox right = *box;
206
+ SequenceBoxType right = *box;
207
207
// Argument box will function as the left bounding box until we merge left
208
208
// and right again at the end of this code section.
209
209
box->max [split_dim] = split_val;
@@ -231,7 +231,7 @@ class KdTreeBuilder {
231
231
}
232
232
233
233
inline void CalculateBoundingBox (
234
- Index const begin_idx, Index const end_idx, SequenceBox * box) const {
234
+ Index const begin_idx, Index const end_idx, SequenceBoxType * box) const {
235
235
box->min .Fill (
236
236
Traits::SpaceSdim (space_), std::numeric_limits<Scalar>::max ());
237
237
box->max .Fill (
@@ -253,8 +253,8 @@ class KdTreeBuilder {
253
253
}
254
254
255
255
inline void SetBranch (
256
- SequenceBox const & left,
257
- SequenceBox const & right,
256
+ SequenceBoxType const & left,
257
+ SequenceBoxType const & right,
258
258
int const split_dim,
259
259
KdTreeNodeEuclidean<Index, Scalar>* node) const {
260
260
node->data .branch .split_dim = split_dim;
@@ -263,8 +263,8 @@ class KdTreeBuilder {
263
263
}
264
264
265
265
inline void SetBranch (
266
- SequenceBox const & left,
267
- SequenceBox const & right,
266
+ SequenceBoxType const & left,
267
+ SequenceBoxType const & right,
268
268
int const split_dim,
269
269
KdTreeNodeTopological<Index, Scalar>* node) const {
270
270
node->data .branch .split_dim = split_dim;
0 commit comments