Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RDefineBase.cxx
Go to the documentation of this file.
1// Author: Enrico Guiraud, Danilo Piparo CERN 09/2018
2
3/*************************************************************************
4 * Copyright (C) 1995-2018, 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
12#include "ROOT/RDF/Utils.hxx"
13#include "ROOT/RStringView.hxx"
14#include "RtypesCore.h" // Long64_t
15
16#include <string>
17#include <vector>
18#include <atomic>
19
22
24{
25 static std::atomic_uint id(0U);
26 return ++id;
27}
28
29RDefineBase::RDefineBase(std::string_view name, std::string_view type, unsigned int nSlots,
30 const RDFInternal::RBookedDefines &defines,
31 const std::map<std::string, std::vector<void *>> &DSValuePtrs, ROOT::RDF::RDataSource *ds)
32 : fName(name), fType(type), fNSlots(nSlots),
33 fLastCheckedEntry(fNSlots * RDFInternal::CacheLineStep<Long64_t>(), -1), fDefines(defines),
34 fIsInitialized(nSlots, false), fDSValuePtrs(DSValuePtrs), fDataSource(ds)
35{
36}
37
38// pin vtable. Work around cling JIT issue.
40
41std::string RDefineBase::GetName() const
42{
43 return fName;
44}
45
46std::string RDefineBase::GetTypeName() const
47{
48 return fType;
49}
long long Long64_t
Definition RtypesCore.h:73
XFontStruct * id
Definition TGX11.cxx:109
char name[80]
Definition TGX11.cxx:110
int type
Definition TGX11.cxx:121
const std::string fType
The type of the custom column as a text string.
std::string GetTypeName() const
std::string GetName() const
static unsigned int GetNextID()
RDefineBase(std::string_view name, std::string_view type, unsigned int nSlots, const RDFInternal::RBookedDefines &defines, const std::map< std::string, std::vector< void * > > &DSValuePtrs, ROOT::RDF::RDataSource *ds)
const std::string fName
The name of the custom column.
Encapsulates the columns defined by the user.
RDataSource defines an API that RDataFrame can use to read arbitrary data formats.