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)
 

Function Documentation

◆ set_PortableHostCollection_read_rules()

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

Definition at line 46 of file PortableHostCollectionReadRules.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_,layout_,view_";
54  rule.fSourceClass = type;
55  rule.fSource = type + "::Layout layout_;";
56  rule.fCode = type + "::ROOTReadStreamer(newObj, onfile.layout_)";
57  rule.fVersion = "[1-]";
58  rule.fChecksum = "";
59  rule.fInclude = "";
60  rule.fEmbed = false;
61  rule.fFunctionPtr = reinterpret_cast<void *>(::readPortableHostCollection_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