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
14#include <ROOT/RNTuple.hxx>
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::Experimental::Detail::RPageSource> fNtplSource;
29 std::string fParentName;
30
32
33public:
34 RFieldHolder(std::shared_ptr<ROOT::Experimental::Detail::RPageSource> ntplSource,
35 const std::string &parent_name,
37 : fNtplSource(ntplSource), fParentName(parent_name), fFieldId(id) {}
38
39 const TClass *GetClass() const override { return TClass::GetClass<ROOT::Experimental::RNTuple>(); }
40
41 /** Returns direct (temporary) object pointer */
42 const void *GetObject() const override { return nullptr; }
43
44 auto GetNtplSource() const { return fNtplSource; }
45 auto GetParentName() const { return fParentName; }
46 auto GetId() const { return fFieldId; }
47};
48
49#endif
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
std::shared_ptr< ROOT::Experimental::Detail::RPageSource > fNtplSource
ROOT::Experimental::DescriptorId_t fFieldId
auto GetParentName() const
auto GetNtplSource() const
const void * GetObject() const override
Returns direct (temporary) object pointer.
auto GetId() const
RFieldHolder(std::shared_ptr< ROOT::Experimental::Detail::RPageSource > ntplSource, const std::string &parent_name, ROOT::Experimental::DescriptorId_t id)
std::string fParentName
const TClass * GetClass() const override
Returns class of contained object.
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:81
std::uint64_t DescriptorId_t
Distriniguishes elements of the same type within a descriptor, e.g. different fields.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.