Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RDSColumnReader.hxx
Go to the documentation of this file.
1// Author: Enrico Guiraud CERN 09/2020
2
3/*************************************************************************
4 * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_RDF_RDSCOLUMNREADER
12#define ROOT_RDF_RDSCOLUMNREADER
13
14#include "RColumnReaderBase.hxx"
15#include <Rtypes.h> // Long64_t, R__CLING_PTRCHECK
16
17namespace ROOT {
18namespace Internal {
19namespace RDF {
20
21/// Column reader type that deals with values read from RDataSources.
22template <typename T>
23class R__CLING_PTRCHECK(off) RDSColumnReader final : public ROOT::Detail::RDF::RColumnReaderBase {
24 T **fDSValuePtr = nullptr;
25
26 void *GetImpl(Long64_t) final { return *fDSValuePtr; }
27
28public:
29 RDSColumnReader(void *DSValuePtr) : fDSValuePtr(static_cast<T **>(DSValuePtr)) {}
30};
31
32} // namespace RDF
33} // namespace Internal
34} // namespace ROOT
35
36#endif
long long Long64_t
Definition RtypesCore.h:69
Column reader type that deals with values read from RDataSources.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...