Logo ROOT  
Reference Guide
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:80
Column reader type that deals with values read from RDataSources.
double T(double x)
Definition: ChebyshevPol.h:34
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.