Skip to content

Commit 48ff83f

Browse files
committed
[df] Remove DataSource template argument of RInterface
It was added by commit e0b0d16 / pull request #1939 in 2018: > This will allow, in the future, to optimize loading of entries > from TDataSources: GetColumnReaders does not have to pass through > virtual calls to TDataSource anymore, which means that concrete > TDS's can provide custom, possibly lazy column readers which > TInterface will use directly. This was never implemented and the template argument is currently unused, so remove it.
1 parent 9f171af commit 48ff83f

File tree

8 files changed

+75
-81
lines changed

8 files changed

+75
-81
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public:
8080

8181
////////////////////////////////////////////////////////////////////////////
8282
/// \brief Starting from a Filter or Range, prints the branch it belongs to
83-
template <typename Proxied, typename DataSource>
84-
std::string RepresentGraph(ROOT::RDF::RInterface<Proxied, DataSource> &rInterface)
83+
template <typename Proxied>
84+
std::string RepresentGraph(ROOT::RDF::RInterface<Proxied> &rInterface)
8585
{
8686
auto loopManager = rInterface.GetLoopManager();
8787
loopManager->Jit();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class RNodeBase;
4949
}
5050
}
5151
namespace RDF {
52-
template<typename T, typename V>
52+
template <typename Proxied>
5353
class RInterface;
54-
using RNode = RInterface<::ROOT::Detail::RDF::RNodeBase, void>;
54+
using RNode = RInterface<::ROOT::Detail::RDF::RNodeBase>;
5555
} // namespace RDF
5656

5757
} // namespace ROOT

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

Lines changed: 61 additions & 67 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ namespace Experimental {
5151
5252
The RMetaData object is passed to an RSample object which represents a single dataset sample.
5353
54-
A dataframe built with the RMetaData object can be accessed with the \ref ROOT::RDF::RInterface< Proxied,
55-
DS_t>::DefinePerSample "DefinePerSample()" method.
54+
A dataframe built with the RMetaData object can be accessed with the
55+
\ref ROOT::RDF::RInterface<Proxied>::DefinePerSample "DefinePerSample()" method.
5656
**/
5757
class RMetaData {
5858
friend void ROOT::Internal::RDF::ImportJSON(ROOT::RDF::Experimental::RMetaData &, const std::string &jsonString);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace ROOT {
2525
namespace RDF {
2626

2727
/// This type represents a sample identifier, to be used in conjunction with RDataFrame features such as
28-
/// \ref ROOT::RDF::RInterface< Proxied, DS_t >::DefinePerSample "DefinePerSample()" and per-sample callbacks.
28+
/// \ref ROOT::RDF::RInterface<Proxied>::DefinePerSample "DefinePerSample()" and per-sample callbacks.
2929
///
3030
/// When the input data comes from a TTree, the string representation of RSampleInfo (which is returned by AsString()
3131
/// and that can be queried e.g. with Contains()) is of the form "<filename>/<treename>".
@@ -129,8 +129,8 @@ public:
129129
};
130130

131131
/// The type of a data-block callback, registered with an RDataFrame computation graph via e.g. \ref
132-
/// ROOT::RDF::RInterface< Proxied, DS_t >::DefinePerSample "DefinePerSample()" or by certain actions (e.g. \ref
133-
/// ROOT::RDF::RInterface<Proxied,DataSource>::Snapshot "Snapshot()").
132+
/// ROOT::RDF::RInterface<Proxied>::DefinePerSample "DefinePerSample()" or by certain actions (e.g. \ref
133+
/// ROOT::RDF::RInterface<Proxied>::Snapshot "Snapshot()").
134134
using SampleCallback_t = std::function<void(unsigned int, const ROOT::RDF::RSampleInfo &)>;
135135

136136
} // namespace RDF

tree/dataframe/inc/ROOT/RDFHelpers.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ namespace Experimental {
222222
template <typename T>
223223
RResultMap<T> VariationsFor(RResultPtr<T> resPtr)
224224
{
225-
using SnapshotResult_t = ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager, void>;
225+
using SnapshotResult_t = ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager>;
226226
static_assert(!std::is_same_v<T, SnapshotResult_t>,
227227
"Snapshot with variations can only be enabled via RSnapshotOptions.");
228228

tree/dataframe/inc/ROOT/RResultPtr.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ template <typename T>
3434
RResultMap<T> VariationsFor(RResultPtr<T> resPtr);
3535
} // namespace Experimental
3636

37-
template <typename Proxied, typename DataSource>
37+
template <typename Proxied>
3838
class RInterface;
3939
} // namespace RDF
4040

@@ -59,7 +59,7 @@ ROOT::RDF::RResultPtr<T> CloneResultAndAction(const ROOT::RDF::RResultPtr<T> &in
5959
inptr.fActionPtr->CloneAction(reinterpret_cast<void *>(&copiedResult)));
6060
}
6161

62-
using SnapshotPtr_t = ROOT::RDF::RResultPtr<ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager, void>>;
62+
using SnapshotPtr_t = ROOT::RDF::RResultPtr<ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager>>;
6363
/**
6464
* \brief Creates a new RResultPtr with a cloned Snapshot action.
6565
*

tree/dataframe/test/dataframe_snapshot.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,13 +948,13 @@ TEST(RDFSnapshotMore, LazyNotTriggered)
948948
"storing its result in a variable and for example calling the GetValue() method on it.");
949949
}
950950

951-
RResultPtr<RInterface<RLoopManager, void>> ReturnLazySnapshot(const char *fname)
951+
RResultPtr<RInterface<RLoopManager>> ReturnLazySnapshot(const char *fname)
952952
{
953953
auto d = ROOT::RDataFrame(1);
954954
ROOT::RDF::RSnapshotOptions opts;
955955
opts.fLazy = true;
956956
auto res = d.Snapshot("t", fname, {"rdfentry_"}, opts);
957-
RResultPtr<RInterface<RLoopManager, void>> res2 = res;
957+
RResultPtr<RInterface<RLoopManager>> res2 = res;
958958
return res;
959959
}
960960

0 commit comments

Comments
 (0)