11#ifndef ROOT_RTRIVIALDS
12#define ROOT_RTRIVIALDS
39 bool fSkipEvenEntries =
false;
41 std::vector<std::string> fColNames{
"col0"};
44 std::vector<void *> GetColumnReadersImpl(std::string_view
name,
const std::type_info &)
final;
47 std::string
AsString() final {
return "trivial data source"; };
60 const std::vector<std::
string> &GetColumnNames() const final;
61 bool HasColumn(std::string_view colName) const final;
62 std::
string GetTypeName(std::string_view) const final;
64 bool SetEntry(
unsigned int slot,
ULong64_t entry) final;
65 void SetNSlots(
unsigned int nSlots) final;
66 void Initialize() final;
67 std::
string GetLabel() final;
70 GetColumnReaders(
unsigned int slot, std::string_view colName, const std::type_info &tid) final;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
long long Long64_t
Portable signed long integer 8 bytes.
unsigned long long ULong64_t
Portable unsigned long integer 8 bytes.
Pure virtual base class for all column reader types.
RTrivialDSColumnReader(ULong64_t *valuePtr)
void * GetImpl(Long64_t) final
RDataSource defines an API that RDataFrame can use to read arbitrary data formats.
The public interface to the RDataFrame federation of classes.
A simple data-source implementation, for demo purposes.
~RTrivialDS() final=default
RTrivialDS & operator=(const RTrivialDS &)=delete
RTrivialDS & operator=(RTrivialDS &&)=delete
std::vector< std::pair< ULong64_t, ULong64_t > > fEntryRanges
RTrivialDS(RTrivialDS &&)=delete
std::vector< ULong64_t * > fCounterAddr
std::vector< ULong64_t > fCounter
std::string AsString() final
RTrivialDS(const RTrivialDS &)=delete