Skip to content

Commit 73037e1

Browse files
committed
Moved benchmark class to the top.
1 parent 73a2832 commit 73037e1

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

examples/benchmark/bm_nanoflann.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#include "benchmark.hpp"
22
#include "nano_adaptor.hpp"
33

4+
class BmNanoflann : public pico_tree::Benchmark {
5+
public:
6+
using NanoAdaptorX = NanoAdaptor<Index, PointX>;
7+
};
8+
49
template <typename NanoAdaptor>
510
using NanoKdTreeCt = nanoflann::KDTreeSingleIndexAdaptor<
611
nanoflann::L2_Simple_Adaptor<typename NanoAdaptor::ScalarType, NanoAdaptor>,
@@ -15,11 +20,6 @@ using NanoKdTreeRt = nanoflann::KDTreeSingleIndexAdaptor<
1520
-1,
1621
typename NanoAdaptor::IndexType>;
1722

18-
class BmNanoflann : public pico_tree::Benchmark {
19-
public:
20-
using NanoAdaptorX = NanoAdaptor<Index, PointX>;
21-
};
22-
2323
// ****************************************************************************
2424
// Building the tree
2525
// ****************************************************************************

examples/benchmark/bm_pico_cover_tree.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#include "benchmark.hpp"
66

7+
class BmPicoCoverTree : public pico_tree::Benchmark {
8+
public:
9+
};
10+
711
// Index explicitly set to int.
812
template <typename PointX>
913
using PicoTraits =
@@ -12,10 +16,6 @@ using PicoTraits =
1216
template <typename PointX>
1317
using PicoCoverTree = pico_tree::CoverTree<PicoTraits<PointX>>;
1418

15-
class BmPicoCoverTree : public pico_tree::Benchmark {
16-
public:
17-
};
18-
1919
// ****************************************************************************
2020
// Building the tree
2121
// ****************************************************************************

examples/benchmark/bm_pico_kd_tree.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include "benchmark.hpp"
55

6+
class BmPicoKdTree : public pico_tree::Benchmark {
7+
public:
8+
};
9+
610
// Index explicitly set to int.
711
template <typename PointX>
812
using PicoTraits =
@@ -18,10 +22,6 @@ using PicoKdTreeRtSldMid = pico_tree::KdTree<
1822
pico_tree::SplitterSlidingMidpoint<PicoTraits<PointX>>,
1923
pico_tree::kDynamicDim>;
2024

21-
class BmPicoKdTree : public pico_tree::Benchmark {
22-
public:
23-
};
24-
2525
// ****************************************************************************
2626
// Building the tree
2727
// ****************************************************************************

0 commit comments

Comments
 (0)