From 6149b0198b3b46e4081120953ea0208b7b1196e0 Mon Sep 17 00:00:00 2001 From: mytkom Date: Sun, 8 Sep 2024 19:30:51 +0000 Subject: [PATCH 01/28] use generic get() in row_helpers --- Framework/Core/include/Framework/ASoA.h | 6 ++-- .../Core/include/Framework/ASoAHelpers.h | 9 ++---- .../Core/include/Framework/BinningPolicy.h | 28 +++++++++---------- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/Framework/Core/include/Framework/ASoA.h b/Framework/Core/include/Framework/ASoA.h index 84c6e3ae705fb..6b26e1394cab7 100644 --- a/Framework/Core/include/Framework/ASoA.h +++ b/Framework/Core/include/Framework/ASoA.h @@ -2155,7 +2155,7 @@ typename C::type getSingleRowData(arrow::Table*, T& rowIterator, uint64_t ci = s if (globalIndex != std::numeric_limits::max() && globalIndex != *std::get<0>(rowIterator.getIndices())) { rowIterator.setCursor(globalIndex); } - return rowIterator.template getDynamicColumn(); + return static_cast(rowIterator).get(); } template @@ -2168,9 +2168,9 @@ typename C::type getSingleRowData(arrow::Table*, T& rowIterator, uint64_t ci = s } template -std::tuple getRowData(arrow::Table* table, T rowIterator, uint64_t ci = std::numeric_limits::max(), uint64_t ai = std::numeric_limits::max(), uint64_t globalIndex = std::numeric_limits::max()) +std::tuple getRowData(T rowIterator, uint64_t globalIndex = std::numeric_limits::max()) { - return std::make_tuple(getSingleRowData(table, rowIterator, ci, ai, globalIndex)...); + return std::make_tuple(getSingleRowData(rowIterator, globalIndex)...); } } // namespace row_helpers } // namespace o2::soa diff --git a/Framework/Core/include/Framework/ASoAHelpers.h b/Framework/Core/include/Framework/ASoAHelpers.h index 6de6662769ef7..8be26e02999b8 100644 --- a/Framework/Core/include/Framework/ASoAHelpers.h +++ b/Framework/Core/include/Framework/ASoAHelpers.h @@ -75,12 +75,6 @@ inline bool diffCategory(BinningIndex const& a, BinningIndex const& b) template