CMS 3D CMS Logo

Namespaces | Functions
ROOT Namespace Reference

Namespaces

 Experimental
 
 Math
 

Functions

template<typename T >
static bool set_PortableHostCollection_read_rules (std::string const &type)
 
template<typename T >
static bool set_PortableHostMultiCollection_read_rules (std::string const &type)
 
template<typename T >
static bool set_PortableHostObject_read_rules (std::string const &type)
 

Function Documentation

◆ set_PortableHostCollection_read_rules()

template<typename T >
static bool ROOT::set_PortableHostCollection_read_rules ( std::string const &  type)
static

Definition at line 75 of file PortableHostCollectionReadRules.h.

References instance.

75  {
76  // forward declaration
77  TGenericClassInfo *GenerateInitInstance(T const *);
78 
79  // build the read rules
80  std::vector<ROOT::Internal::TSchemaHelper> readrules(1);
81  ROOT::Internal::TSchemaHelper &rule = readrules[0];
82  rule.fTarget = "buffer_,layout_,view_";
83  rule.fSourceClass = type;
84  rule.fSource = type + "::Layout layout_;";
85  rule.fCode = type + "::ROOTReadStreamer(newObj, onfile.layout_)";
86  rule.fVersion = "[1-]";
87  rule.fChecksum = "";
88  rule.fInclude = "";
89  rule.fEmbed = false;
90  rule.fFunctionPtr = reinterpret_cast<void *>(::readPortableHostCollection_v1<T>);
91  rule.fAttributes = "";
92 
93  // set the read rules
94  TGenericClassInfo *instance = GenerateInitInstance((T const *)nullptr);
95  instance->SetReadRules(readrules);
96 
97  return true;
98  }
static PFTauRenderPlugin instance
long double T

◆ set_PortableHostMultiCollection_read_rules()

template<typename T >
static bool ROOT::set_PortableHostMultiCollection_read_rules ( std::string const &  type)
static

Definition at line 103 of file PortableHostCollectionReadRules.h.

References instance.

103  {
104  // forward declaration
105  TGenericClassInfo *GenerateInitInstance(T const *);
106 
107  // build the read rules
108  std::vector<ROOT::Internal::TSchemaHelper> readrules(1);
109  ROOT::Internal::TSchemaHelper &rule = readrules[0];
110  rule.fTarget = "buffer_,impl_";
111  rule.fSourceClass = type;
112  rule.fSource = type + "::Implementation impl_;";
113  rule.fCode = type + "::ROOTReadStreamer(newObj, onfile.impl_)";
114  rule.fVersion = "[1-]";
115  rule.fChecksum = "";
116  rule.fInclude = "";
117  rule.fEmbed = false;
118  rule.fFunctionPtr = reinterpret_cast<void *>(::readPortableHostMultiCollection_v1<T>);
119  rule.fAttributes = "";
120 
121  // set the read rules
122  TGenericClassInfo *instance = GenerateInitInstance((T const *)nullptr);
123  instance->SetReadRules(readrules);
124 
125  return true;
126  }
static PFTauRenderPlugin instance
long double T

◆ set_PortableHostObject_read_rules()

template<typename T >
static bool ROOT::set_PortableHostObject_read_rules ( std::string const &  type)
static

Definition at line 46 of file PortableHostObjectReadRules.h.

References instance.

46  {
47  // forward declaration
48  TGenericClassInfo *GenerateInitInstance(T const *);
49 
50  // build the read rules
51  std::vector<ROOT::Internal::TSchemaHelper> readrules(1);
52  ROOT::Internal::TSchemaHelper &rule = readrules[0];
53  rule.fTarget = "buffer_,product_";
54  rule.fSourceClass = type;
55  rule.fSource = type + "::Product* product_;";
56  rule.fCode = type + "::ROOTReadStreamer(newObj, *onfile.product_)";
57  rule.fVersion = "[1-]";
58  rule.fChecksum = "";
59  rule.fInclude = "";
60  rule.fEmbed = false;
61  rule.fFunctionPtr = reinterpret_cast<void *>(::readPortableHostObject_v1<T>);
62  rule.fAttributes = "";
63 
64  // set the read rules
65  TGenericClassInfo *instance = GenerateInitInstance((T const *)nullptr);
66  instance->SetReadRules(readrules);
67 
68  return true;
69  }
static PFTauRenderPlugin instance
long double T