31 f.fFieldVersion = fieldVersion;
32 f.fTypeVersion = typeVersion;
33 f.fFieldName = std::string(fieldName);
34 f.fTypeName = std::string(typeName);
35 f.fStructure = structure;
36 fDescriptor.fFieldDescriptors[fieldId] =
f;
41 fDescriptor.fFieldDescriptors[fieldId].fParentId = parentId;
46 fDescriptor.fFieldDescriptors[fieldId].fLinkIds.push_back(linkId);
53 c.fColumnId = columnId;
57 fDescriptor.fColumnDescriptors[columnId] =
c;
62 fDescriptor.fColumnDescriptors[columnId].fOffsetId = offsetId;
67 fDescriptor.fColumnDescriptors[columnId].fLinkIds.push_back(linkId);
74 c.fClusterId = clusterId;
76 c.fFirstEntryIndex = firstEntryIndex;
77 c.fNEntries = nEntries;
78 fDescriptor.fClusterDescriptors[clusterId] =
c;
84 fDescriptor.fClusterDescriptors[clusterId].fColumnInfos[columnInfo.
fColumnId] = columnInfo;
Holds the static meta-data of a column in a tree.
void AddCluster(DescriptorId_t clusterId, RNTupleVersion version, NTupleSize_t firstEntryIndex, ClusterSize_t nEntries)
void AddColumnLink(DescriptorId_t columnId, DescriptorId_t linkId)
void AddFieldLink(DescriptorId_t fieldId, DescriptorId_t linkId)
void AddColumn(DescriptorId_t columnId, DescriptorId_t fieldId, const RNTupleVersion &version, const RColumnModel &model)
void AddField(DescriptorId_t fieldId, const RNTupleVersion &fieldVersion, const RNTupleVersion &typeVersion, std::string_view fieldName, std::string_view typeName, ENTupleStructure structure)
void AddClusterColumnInfo(DescriptorId_t clusterId, const RClusterDescriptor::RColumnInfo &columnInfo)
void SetFieldParent(DescriptorId_t fieldId, DescriptorId_t parentId)
void SetColumnOffset(DescriptorId_t columnId, DescriptorId_t offsetId)
RNTupleDescriptor fDescriptor
void SetNTuple(std::string_view name, const RNTupleVersion &version)
For forward and backward compatibility, attach version information to the consitituents of the file f...
basic_string_view< char > string_view
std::uint64_t NTupleSize_t
Integer type long enough to hold the maximum number of entries in a column.
ENTupleStructure
The fields in the ntuple model tree can carry different structural information about the type system.
std::uint64_t DescriptorId_t
Distriniguishes elements of the same type within a descriptor, e.g. different fields.
Wrap the 32bit integer in a struct in order to avoid template specialization clash with std::uint32_t...