Skip to content

Commit 1ea62ff

Browse files
committed
[df] Remove remaining TDS occurrences
1 parent bcb99d2 commit 1ea62ff

File tree

9 files changed

+29
-32
lines changed

9 files changed

+29
-32
lines changed

tree/dataframe/inc/ROOT/RArrowDS.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* For the list of contributors see $ROOTSYS/README/CREDITS. *
77
*************************************************************************/
88

9-
#ifndef ROOT_RARROWTDS
10-
#define ROOT_RARROWTDS
9+
#ifndef ROOT_RARROWDS
10+
#define ROOT_RARROWDS
1111

1212
#include "ROOT/RDataFrame.hxx"
1313
#include "ROOT/RDataSource.hxx"

tree/dataframe/inc/ROOT/RCsvDS.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* For the list of contributors see $ROOTSYS/README/CREDITS. *
99
*************************************************************************/
1010

11-
#ifndef ROOT_RCSVTDS
12-
#define ROOT_RCSVTDS
11+
#ifndef ROOT_RCSVDS
12+
#define ROOT_RCSVDS
1313

1414
#include "ROOT/RDataFrame.hxx"
1515
#include "ROOT/RDataSource.hxx"

tree/dataframe/inc/ROOT/RDF/RLazyDSImpl.hxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727
namespace ROOT::Internal::RDF {
2828
class R__CLING_PTRCHECK(off) RLazyDSColumnReader final : public ROOT::Detail::RDF::RColumnReaderBase {
29-
ROOT::Internal::TDS::TPointerHolder *fPtr;
29+
ROOT::Internal::RDF::TPointerHolder *fPtr;
3030
void *GetImpl(Long64_t) final { return fPtr->GetPointer(); }
3131

3232
public:
33-
RLazyDSColumnReader(ROOT::Internal::TDS::TPointerHolder *ptr) : fPtr(ptr) {}
33+
RLazyDSColumnReader(ROOT::Internal::RDF::TPointerHolder *ptr) : fPtr(ptr) {}
3434
};
3535
} // namespace ROOT::Internal::RDF
3636

@@ -49,7 +49,7 @@ namespace RDF {
4949
/// information, e.g. expanding in a smart way the template parameters packs.
5050
template <typename... ColumnTypes>
5151
class RLazyDS final : public ROOT::RDF::RDataSource {
52-
using PointerHolderPtrs_t = std::vector<ROOT::Internal::TDS::TPointerHolder *>;
52+
using PointerHolderPtrs_t = std::vector<ROOT::Internal::RDF::TPointerHolder *>;
5353

5454
std::tuple<RResultPtr<std::vector<ColumnTypes>>...> fColumns;
5555
const std::vector<std::string> fColNames;
@@ -106,7 +106,7 @@ public:
106106
: fColumns(std::tuple<RResultPtr<std::vector<ColumnTypes>>...>(colsNameVals.second...)),
107107
fColNames({colsNameVals.first...}),
108108
fColTypesMap({{colsNameVals.first, ROOT::Internal::RDF::TypeID2TypeName(typeid(ColumnTypes))}...}),
109-
fPointerHoldersModels({new ROOT::Internal::TDS::TTypedPointerHolder<ColumnTypes>(new ColumnTypes())...})
109+
fPointerHoldersModels({new ROOT::Internal::RDF::TTypedPointerHolder<ColumnTypes>(new ColumnTypes())...})
110110
{
111111
}
112112

tree/dataframe/inc/ROOT/RDataSource.hxx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ std::string printValue(ROOT::RDF::RDataSource *ds);
5151
namespace ROOT {
5252

5353
namespace Internal {
54-
namespace TDS {
54+
namespace RDF {
5555

5656
/// Mother class of TTypedPointerHolder. The instances
5757
/// of this class can be put in a container. Upon destruction,
@@ -85,9 +85,6 @@ public:
8585
~TTypedPointerHolder() { delete static_cast<T *>(fPointer); }
8686
};
8787

88-
} // ns TDS
89-
90-
namespace RDF {
9188
std::string GetTypeNameWithOpts(const ROOT::RDF::RDataSource &ds, std::string_view colName, bool vector2RVec);
9289
const std::vector<std::string> &GetTopLevelFieldNames(const ROOT::RDF::RDataSource &ds);
9390
const std::vector<std::string> &GetColumnNamesNoDuplicates(const ROOT::RDF::RDataSource &ds);

tree/dataframe/inc/ROOT/RRootDS.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* For the list of contributors see $ROOTSYS/README/CREDITS. *
99
*************************************************************************/
1010

11-
#ifndef ROOT_RROOTTDS
12-
#define ROOT_RROOTTDS
11+
#ifndef ROOT_RROOTDS
12+
#define ROOT_RROOTDS
1313

1414
#include "ROOT/RDataFrame.hxx"
1515
#include "ROOT/RDataSource.hxx"

tree/dataframe/inc/ROOT/RTrivialDS.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* For the list of contributors see $ROOTSYS/README/CREDITS. *
99
*************************************************************************/
1010

11-
#ifndef ROOT_RTRIVIALTDS
12-
#define ROOT_RTRIVIALTDS
11+
#ifndef ROOT_RTRIVIALDS
12+
#define ROOT_RTRIVIALDS
1313

1414
#include "ROOT/RDF/RInterface.hxx"
1515
#include "ROOT/RDataSource.hxx"

tree/dataframe/inc/ROOT/RVecDS.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace RDF {
4343
/// so that the lifetime of the data is tied to the datasource.
4444
template <typename... ColumnTypes>
4545
class RVecDS final : public ROOT::RDF::RDataSource {
46-
using PointerHolderPtrs_t = std::vector<ROOT::Internal::TDS::TPointerHolder *>;
46+
using PointerHolderPtrs_t = std::vector<ROOT::Internal::RDF::TPointerHolder *>;
4747

4848
std::tuple<ROOT::RVec<ColumnTypes>...> fColumns;
4949
const std::vector<std::string> fColNames;
@@ -125,7 +125,7 @@ public:
125125
: fColumns(colsNameVals.second...),
126126
fColNames{colsNameVals.first...},
127127
fColTypesMap({{colsNameVals.first, ROOT::Internal::RDF::TypeID2TypeName(typeid(ColumnTypes))}...}),
128-
fPointerHoldersModels({new ROOT::Internal::TDS::TTypedPointerHolder<ColumnTypes>(new ColumnTypes())...}),
128+
fPointerHoldersModels({new ROOT::Internal::RDF::TTypedPointerHolder<ColumnTypes>(new ColumnTypes())...}),
129129
fDeleteRVecs(deleteRVecs)
130130
{
131131
}

tree/dataframe/test/dataframe_cache.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ TEST(Cache, Ambiguity)
5353
}
5454

5555
/*
56-
// The contiguity has been dropped since now caching is backed up by a TDS
56+
// The contiguity has been dropped since now caching is backed up by a data source
5757
// TODO: we can optimise this. The reason why addresses are not contiguous with
5858
// data sources (now cache is achieved with a data source) is linked to Snapshot.
5959
// Indeed we need to set an address for each branch and keep that constant

tree/dataframe/test/datasource_root.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
using namespace ROOT;
1212
using namespace ROOT::RDF;
1313

14-
auto fileName0 = "TRootTDS_input_0.root";
15-
auto fileName1 = "TRootTDS_input_1.root";
16-
auto fileName2 = "TRootTDS_input_2.root";
17-
auto fileGlob = "TRootTDS_input_*.root";
14+
auto fileName0 = "RRootDS_input_0.root";
15+
auto fileName1 = "RRootDS_input_1.root";
16+
auto fileName2 = "RRootDS_input_2.root";
17+
auto fileGlob = "RRootDS_input_*.root";
1818
auto treeName = "t";
1919

2020
TEST(RRootDS, GenerateData)
@@ -51,7 +51,7 @@ TEST(RRootDS, ColTypeNames)
5151
EXPECT_STREQ("TGraph", tds.GetTypeName("g").c_str());
5252
}
5353

54-
TEST(TRootTDS, EntryRanges)
54+
TEST(RRootDS, EntryRanges)
5555
{
5656
ROOT::Internal::RDF::RRootDS tds(treeName, fileGlob);
5757
tds.SetNSlots(3U);
@@ -69,7 +69,7 @@ TEST(TRootTDS, EntryRanges)
6969
EXPECT_EQ(30U, ranges[2].second);
7070
}
7171

72-
TEST(TRootTDS, ColumnReaders)
72+
TEST(RRootDS, ColumnReaders)
7373
{
7474
ROOT::Internal::RDF::RRootDS tds(treeName, fileGlob);
7575
const auto nSlots = 3U;
@@ -89,7 +89,7 @@ TEST(TRootTDS, ColumnReaders)
8989
}
9090
}
9191

92-
TEST(TRootTDS, ColumnReadersWrongType)
92+
TEST(RRootDS, ColumnReadersWrongType)
9393
{
9494
ROOT::Internal::RDF::RRootDS tds(treeName, fileGlob);
9595
const auto nSlots = 3U;
@@ -106,7 +106,7 @@ TEST(TRootTDS, ColumnReadersWrongType)
106106

107107
#ifndef NDEBUG
108108

109-
TEST(TRootTDS, SetNSlotsTwice)
109+
TEST(RRootDS, SetNSlotsTwice)
110110
{
111111
auto theTest = []() {
112112
ROOT::Internal::RDF::RRootDS tds(treeName, fileGlob);
@@ -117,7 +117,7 @@ TEST(TRootTDS, SetNSlotsTwice)
117117
}
118118
#endif
119119

120-
TEST(TRootTDS, FromARDF)
120+
TEST(RRootDS, FromARDF)
121121
{
122122
std::unique_ptr<RDataSource> tds(new ROOT::Internal::RDF::RRootDS(treeName, fileGlob));
123123
RDataFrame tdf(std::move(tds));
@@ -130,7 +130,7 @@ TEST(TRootTDS, FromARDF)
130130
EXPECT_DOUBLE_EQ(0., *min);
131131
}
132132

133-
TEST(TRootTDS, FromARDFWithJitting)
133+
TEST(RRootDS, FromARDFWithJitting)
134134
{
135135
std::unique_ptr<RDataSource> tds(new ROOT::Internal::RDF::RRootDS(treeName, fileGlob));
136136
RDataFrame tdf(std::move(tds));
@@ -144,7 +144,7 @@ TEST(TRootTDS, FromARDFWithJitting)
144144
// NOW MT!-------------
145145
#ifdef R__USE_IMT
146146

147-
TEST(TRootTDS, DefineSlotMT)
147+
TEST(RRootDS, DefineSlotMT)
148148
{
149149
const auto nSlots = 4U;
150150
ROOT::EnableImplicitMT(nSlots);
@@ -163,7 +163,7 @@ TEST(TRootTDS, DefineSlotMT)
163163
EXPECT_LE(nUsedSlots, nSlots);
164164
}
165165

166-
TEST(TRootTDS, FromARDFMT)
166+
TEST(RRootDS, FromARDFMT)
167167
{
168168
std::unique_ptr<RDataSource> tds(new ROOT::Internal::RDF::RRootDS(treeName, fileGlob));
169169
RDataFrame tdf(std::move(tds));
@@ -176,7 +176,7 @@ TEST(TRootTDS, FromARDFMT)
176176
EXPECT_DOUBLE_EQ(0., *min);
177177
}
178178

179-
TEST(TRootTDS, FromARDFWithJittingMT)
179+
TEST(RRootDS, FromARDFWithJittingMT)
180180
{
181181
std::unique_ptr<RDataSource> tds(new ROOT::Internal::RDF::RRootDS(treeName, fileGlob));
182182
RDataFrame tdf(std::move(tds));

0 commit comments

Comments
 (0)