ROOT
master
Reference Guide
Loading...
Searching...
No Matches
RColumnReaderBase.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_INTERNAL_RDF_RCOLUMNREADERBASE
12
#define ROOT_INTERNAL_RDF_RCOLUMNREADERBASE
13
14
#include <
Rtypes.h
>
15
16
namespace
ROOT
{
17
namespace
Detail {
18
namespace
RDF {
19
20
/**
21
\class ROOT::Internal::RDF::RColumnReaderBase
22
\ingroup dataframe
23
\brief Pure virtual base class for all column reader types
24
25
This pure virtual class provides a common base class for the different column reader types, e.g. RTreeColumnReader and
26
RDSColumnReader.
27
**/
28
class
R__CLING_PTRCHECK(off)
RColumnReaderBase
{
29
public
:
30
virtual
~RColumnReaderBase
() =
default
;
31
32
/// Return the column value for the given entry.
33
/// \tparam T The column type
34
/// \param entry The entry number
35
///
36
/// The caller is responsible for checking that the returned value actually
37
/// exists.
38
template
<
typename
T>
39
T *
TryGet
(
Long64_t
entry
)
40
{
41
return
static_cast<
T *
>
(GetImpl(
entry
));
42
}
43
44
private
:
45
virtual
void
*
GetImpl
(
Long64_t
entry
) = 0;
46
};
47
48
}
// namespace RDF
49
}
// namespace Detail
50
}
// namespace ROOT
51
52
#endif
Long64_t
long long Long64_t
Definition
RtypesCore.h:69
Rtypes.h
ROOT::Detail::RDF::RColumnReaderBase
Definition
RColumnReaderBase.hxx:28
ROOT::Detail::RDF::RColumnReaderBase::GetImpl
virtual void * GetImpl(Long64_t entry)=0
ROOT::Detail::RDF::RColumnReaderBase::TryGet
T * TryGet(Long64_t entry)
Return the column value for the given entry.
Definition
RColumnReaderBase.hxx:39
ROOT::Detail::RDF::RColumnReaderBase::~RColumnReaderBase
virtual ~RColumnReaderBase()=default
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
tree
dataframe
inc
ROOT
RDF
RColumnReaderBase.hxx
ROOT master - Reference Guide Generated on Thu Feb 6 2025 04:15:49 (GVA Time) using Doxygen 1.10.0