Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RFieldHolder.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
3 * All rights reserved. *
4 * *
5 * For the licensing terms see $ROOTSYS/LICENSE. *
6 * For the list of contributors see $ROOTSYS/README/CREDITS. *
7 *************************************************************************/
8
9#ifndef ROOT_Browsable_RFieldHolder
10#define ROOT_Browsable_RFieldHolder
11
13
15#include <ROOT/RMiniFile.hxx>
16
17#include "TClass.h"
18
19namespace ROOT {
20namespace Experimental {
21namespace Detail {
22class RPageSource;
23}
24}
25}
26
28 std::shared_ptr<ROOT::RNTupleReader> fNtplReader;
29 std::string fParentName;
30
32 std::string fDisplayName;
33
34public:
35 RFieldHolder(std::shared_ptr<ROOT::RNTupleReader> ntplReader, const std::string &parent_name,
36 ROOT::DescriptorId_t id, const std::string &displayName)
38 {
39 }
40
41 const TClass *GetClass() const override { return TClass::GetClass<ROOT::RNTuple>(); }
42
43 /** Returns direct (temporary) object pointer */
44 const void *GetObject() const override { return nullptr; }
45
46 auto GetNtplReader() const { return fNtplReader; }
47 auto GetParentName() const { return fParentName; }
48 auto GetId() const { return fFieldId; }
49 auto GetDisplayName() const { return fDisplayName; }
50};
51
52#endif
auto GetDisplayName() const
std::shared_ptr< ROOT::RNTupleReader > fNtplReader
auto GetParentName() const
const void * GetObject() const override
Returns direct (temporary) object pointer.
auto GetId() const
std::string fDisplayName
RFieldHolder(std::shared_ptr< ROOT::RNTupleReader > ntplReader, const std::string &parent_name, ROOT::DescriptorId_t id, const std::string &displayName)
std::string fParentName
const TClass * GetClass() const override
Returns class of contained object.
auto GetNtplReader() const
ROOT::DescriptorId_t fFieldId
Basic class for object holder of any kind.
Definition RHolder.hxx:33
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:84
Namespace for new ROOT classes and functions.
std::uint64_t DescriptorId_t
Distriniguishes elements of the same type within a descriptor, e.g. different fields.