2525#include " Query/kdTreeRangeQueries.h"
2626
2727namespace Ponca {
28- template <typename Traits> class KdTreeImplBase ;
28+ template <typename Traits> class KdTreeBase ;
2929template <typename Traits> class KdTreeDenseBase ;
3030template <typename Traits> class KdTreeSparseBase ;
3131
3232/* !
3333 * \brief Base type for default KdTree implementations
3434 *
3535 * \see KdTreeDefaultTraits for the default trait interface documentation.
36- * \see KdTreeImplBase for complete API
36+ * \see KdTreeBase for complete API
3737 */
3838template <typename DataPoint>
39- using KdTreeImpl = KdTreeImplBase <KdTreeDefaultTraits<DataPoint>>;
39+ using KdTree = KdTreeBase <KdTreeDefaultTraits<DataPoint>>;
4040
4141/* !
4242 * \brief Public interface for dense KdTree datastructure.
@@ -74,7 +74,7 @@ using KdTreeSparse = KdTreeSparseBase<KdTreeDefaultTraits<DataPoint>>;
7474 * \todo Better handle sampling: do not store non-selected points (requires to store original indices)
7575 */
7676template <typename Traits>
77- class KdTreeImplBase
77+ class KdTreeBase
7878{
7979public:
8080 using DataPoint = typename Traits::DataPoint; // /< DataPoint given by user via Traits
@@ -277,7 +277,7 @@ public :
277277
278278 // Internal ----------------------------------------------------------------
279279protected:
280- inline KdTreeImplBase () = default;
280+ inline KdTreeBase () = default;
281281
282282 // / Generate a tree sampled from a custom contained type converted using a `Converter`
283283 // / \tparam PointUserContainer Input point, transformed to PointContainer
@@ -291,7 +291,7 @@ public :
291291 IndexUserContainer sampling,
292292 Converter c);
293293
294- // / Generate a tree sampled from a custom contained type converted using a \ref KdTreeImplBase ::DefaultConverter
294+ // / Generate a tree sampled from a custom contained type converted using a \ref KdTreeBase ::DefaultConverter
295295 // / \tparam PointUserContainer Input points, transformed to PointContainer
296296 // / \tparam IndexUserContainer Input sampling, transformed to IndexContainer
297297 // / \param points Input points
@@ -323,17 +323,17 @@ public :
323323 * \see KdTreeDefaultTraits for the trait interface documentation.
324324 */
325325template <typename Traits>
326- class KdTreeDenseBase : public KdTreeImplBase <Traits>
326+ class KdTreeDenseBase : public KdTreeBase <Traits>
327327{
328328private:
329- using Base = KdTreeImplBase <Traits>;
329+ using Base = KdTreeBase <Traits>;
330330
331331public:
332332 // / Default constructor creating an empty tree
333333 // / \see build
334334 KdTreeDenseBase () = default ;
335335
336- // / Constructor generating a tree from a custom contained type converted using a \ref KdTreeImplBase ::DefaultConverter
336+ // / Constructor generating a tree from a custom contained type converted using a \ref KdTreeBase ::DefaultConverter
337337 template <typename PointUserContainer>
338338 inline explicit KdTreeDenseBase (PointUserContainer&& points)
339339 : Base()
@@ -357,10 +357,10 @@ class KdTreeDenseBase : public KdTreeImplBase<Traits>
357357 * \see KdTreeDefaultTraits for the trait interface documentation.
358358 */
359359template <typename Traits>
360- class KdTreeSparseBase : public KdTreeImplBase <Traits>
360+ class KdTreeSparseBase : public KdTreeBase <Traits>
361361{
362362private:
363- using Base = KdTreeImplBase <Traits>;
363+ using Base = KdTreeBase <Traits>;
364364
365365public:
366366 static constexpr bool SUPPORTS_SUBSAMPLING = false ;
@@ -369,15 +369,15 @@ class KdTreeSparseBase : public KdTreeImplBase<Traits>
369369 // / \see build
370370 KdTreeSparseBase () = default ;
371371
372- // / Constructor generating a tree from a custom contained type converted using a \ref KdTreeImplBase ::DefaultConverter
372+ // / Constructor generating a tree from a custom contained type converted using a \ref KdTreeBase ::DefaultConverter
373373 template <typename PointUserContainer>
374374 inline explicit KdTreeSparseBase (PointUserContainer&& points)
375375 : Base()
376376 {
377377 this ->build (std::forward<PointUserContainer>(points));
378378 }
379379
380- // / Constructor generating a tree sampled from a custom contained type converted using a \ref KdTreeImplBase ::DefaultConverter
380+ // / Constructor generating a tree sampled from a custom contained type converted using a \ref KdTreeBase ::DefaultConverter
381381 // / \tparam PointUserContainer Input points, transformed to PointContainer
382382 // / \tparam IndexUserContainer Input sampling, transformed to IndexContainer
383383 // / \param point Input points
@@ -396,7 +396,7 @@ class KdTreeSparseBase : public KdTreeImplBase<Traits>
396396} // namespace Ponca
397397
398398template <typename Traits>
399- std::ostream& operator <<(std::ostream& os, const Ponca::KdTreeImplBase <Traits>& kdtree)
399+ std::ostream& operator <<(std::ostream& os, const Ponca::KdTreeBase <Traits>& kdtree)
400400{
401401 kdtree.print (os);
402402 return os;
0 commit comments