Skip to content

Commit 21a2d1e

Browse files
committed
Updated typedef that shadowed class name.
1 parent c2eb090 commit 21a2d1e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/pico_tree/pico_tree/kd_tree.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class KdTreeBuilder {
129129
using Index = typename Traits::IndexType;
130130
using Scalar = typename Traits::ScalarType;
131131
using Space = typename Traits::SpaceType;
132-
using SequenceBox = SequenceBox<Scalar, Dim_>;
132+
using SequenceBoxType = SequenceBox<Scalar, Dim_>;
133133

134134
public:
135135
//! \brief Node type supported by KdTreeBuilder based on SpaceTag.
@@ -152,8 +152,8 @@ class KdTreeBuilder {
152152
nodes_{*nodes} {}
153153

154154
//! \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);
157157
return SplitIndices(0, 0, Traits::SpaceNpts(space_), &box);
158158
}
159159

@@ -172,7 +172,7 @@ class KdTreeBuilder {
172172
Index const depth,
173173
Index const offset,
174174
Index const size,
175-
SequenceBox* box) const {
175+
SequenceBoxType* box) const {
176176
Node* node = nodes_.Allocate();
177177
//
178178
if (size <= max_leaf_size_) {
@@ -203,7 +203,7 @@ class KdTreeBuilder {
203203
Index const left_size = split_idx - offset;
204204
Index const right_size = size - left_size;
205205

206-
SequenceBox right = *box;
206+
SequenceBoxType right = *box;
207207
// Argument box will function as the left bounding box until we merge left
208208
// and right again at the end of this code section.
209209
box->max[split_dim] = split_val;
@@ -231,7 +231,7 @@ class KdTreeBuilder {
231231
}
232232

233233
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 {
235235
box->min.Fill(
236236
Traits::SpaceSdim(space_), std::numeric_limits<Scalar>::max());
237237
box->max.Fill(
@@ -253,8 +253,8 @@ class KdTreeBuilder {
253253
}
254254

255255
inline void SetBranch(
256-
SequenceBox const& left,
257-
SequenceBox const& right,
256+
SequenceBoxType const& left,
257+
SequenceBoxType const& right,
258258
int const split_dim,
259259
KdTreeNodeEuclidean<Index, Scalar>* node) const {
260260
node->data.branch.split_dim = split_dim;
@@ -263,8 +263,8 @@ class KdTreeBuilder {
263263
}
264264

265265
inline void SetBranch(
266-
SequenceBox const& left,
267-
SequenceBox const& right,
266+
SequenceBoxType const& left,
267+
SequenceBoxType const& right,
268268
int const split_dim,
269269
KdTreeNodeTopological<Index, Scalar>* node) const {
270270
node->data.branch.split_dim = split_dim;

0 commit comments

Comments
 (0)