Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:53:06

0001 // Author: Enrico Guiraud CERN 09/2020
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_RDF_RDSCOLUMNREADER
0012 #define ROOT_RDF_RDSCOLUMNREADER
0013 
0014 #include "RColumnReaderBase.hxx"
0015 #include <Rtypes.h>  // Long64_t, R__CLING_PTRCHECK
0016 
0017 namespace ROOT {
0018 namespace Internal {
0019 namespace RDF {
0020 
0021 /// Column reader type that deals with values read from RDataSources.
0022 template <typename T>
0023 class R__CLING_PTRCHECK(off) RDSColumnReader final : public ROOT::Detail::RDF::RColumnReaderBase {
0024    T **fDSValuePtr = nullptr;
0025 
0026    void *GetImpl(Long64_t) final { return *fDSValuePtr; }
0027 
0028 public:
0029    RDSColumnReader(void *DSValuePtr) : fDSValuePtr(static_cast<T **>(DSValuePtr)) {}
0030 };
0031 
0032 } // namespace RDF
0033 } // namespace Internal
0034 } // namespace ROOT
0035 
0036 #endif