Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Internal::RFieldDescriptorBuilder Class Reference

A helper class for piece-wise construction of an RFieldDescriptor.

Dangling field descriptors describe a single field in isolation. They are missing the necessary relationship information (parent field, any child fields) required to describe a real NTuple field.

Dangling field descriptors can only become actual descriptors when added to an RNTupleDescriptorBuilder instance and then linked to other fields.

Definition at line 1120 of file RNTupleDescriptor.hxx.

Public Member Functions

 RFieldDescriptorBuilder ()=default
 Make an empty dangling field descriptor.
 
 RFieldDescriptorBuilder (const RFieldDescriptor &fieldDesc)
 Make a new RFieldDescriptorBuilder based off an existing descriptor.
 
RFieldDescriptorBuilderFieldDescription (const std::string &fieldDescription)
 
RFieldDescriptorBuilderFieldId (DescriptorId_t fieldId)
 
RFieldDescriptorBuilderFieldName (const std::string &fieldName)
 
RFieldDescriptorBuilderFieldVersion (std::uint32_t fieldVersion)
 
DescriptorId_t GetParentId () const
 
RResult< RFieldDescriptorMakeDescriptor () const
 Attempt to make a field descriptor.
 
RFieldDescriptorBuilderNRepetitions (std::uint64_t nRepetitions)
 
RFieldDescriptorBuilderParentId (DescriptorId_t id)
 
RFieldDescriptorBuilderProjectionSourceId (DescriptorId_t id)
 
RFieldDescriptorBuilderStructure (const ENTupleStructure &structure)
 
RFieldDescriptorBuilderTypeAlias (const std::string &typeAlias)
 
RFieldDescriptorBuilderTypeChecksum (const std::optional< std::uint32_t > typeChecksum)
 
RFieldDescriptorBuilderTypeName (const std::string &typeName)
 
RFieldDescriptorBuilderTypeVersion (std::uint32_t typeVersion)
 

Static Public Member Functions

static RFieldDescriptorBuilder FromField (const RFieldBase &field)
 Make a new RFieldDescriptorBuilder based off a live NTuple field.
 

Private Attributes

RFieldDescriptor fField = RFieldDescriptor()
 

#include <ROOT/RNTupleDescriptor.hxx>

Constructor & Destructor Documentation

◆ RFieldDescriptorBuilder() [1/2]

ROOT::Experimental::Internal::RFieldDescriptorBuilder::RFieldDescriptorBuilder ( )
default

Make an empty dangling field descriptor.

◆ RFieldDescriptorBuilder() [2/2]

ROOT::Experimental::Internal::RFieldDescriptorBuilder::RFieldDescriptorBuilder ( const RFieldDescriptor fieldDesc)
explicit

Make a new RFieldDescriptorBuilder based off an existing descriptor.

Relationship information is lost during the conversion to a dangling descriptor:

  • Parent id is reset to an invalid id.
  • Field children ids are forgotten.

These properties must be set using RNTupleDescriptorBuilder::AddFieldLink().

Definition at line 856 of file RNTupleDescriptor.cxx.

Member Function Documentation

◆ FieldDescription()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::FieldDescription ( const std::string &  fieldDescription)
inline

Definition at line 1169 of file RNTupleDescriptor.hxx.

◆ FieldId()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::FieldId ( DescriptorId_t  fieldId)
inline

Definition at line 1139 of file RNTupleDescriptor.hxx.

◆ FieldName()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::FieldName ( const std::string &  fieldName)
inline

Definition at line 1164 of file RNTupleDescriptor.hxx.

◆ FieldVersion()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::FieldVersion ( std::uint32_t  fieldVersion)
inline

Definition at line 1144 of file RNTupleDescriptor.hxx.

◆ FromField()

ROOT::Experimental::Internal::RFieldDescriptorBuilder ROOT::Experimental::Internal::RFieldDescriptorBuilder::FromField ( const RFieldBase field)
static

Make a new RFieldDescriptorBuilder based off a live NTuple field.

Definition at line 865 of file RNTupleDescriptor.cxx.

◆ GetParentId()

DescriptorId_t ROOT::Experimental::Internal::RFieldDescriptorBuilder::GetParentId ( ) const
inline

Definition at line 1199 of file RNTupleDescriptor.hxx.

◆ MakeDescriptor()

ROOT::Experimental::RResult< ROOT::Experimental::RFieldDescriptor > ROOT::Experimental::Internal::RFieldDescriptorBuilder::MakeDescriptor ( ) const

Attempt to make a field descriptor.

This may fail if the dangling field was not given enough information to make a proper descriptor.

Definition at line 882 of file RNTupleDescriptor.cxx.

◆ NRepetitions()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::NRepetitions ( std::uint64_t  nRepetitions)
inline

Definition at line 1184 of file RNTupleDescriptor.hxx.

◆ ParentId()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::ParentId ( DescriptorId_t  id)
inline

Definition at line 1154 of file RNTupleDescriptor.hxx.

◆ ProjectionSourceId()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::ProjectionSourceId ( DescriptorId_t  id)
inline

Definition at line 1159 of file RNTupleDescriptor.hxx.

◆ Structure()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::Structure ( const ENTupleStructure structure)
inline

Definition at line 1189 of file RNTupleDescriptor.hxx.

◆ TypeAlias()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::TypeAlias ( const std::string &  typeAlias)
inline

Definition at line 1179 of file RNTupleDescriptor.hxx.

◆ TypeChecksum()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::TypeChecksum ( const std::optional< std::uint32_t >  typeChecksum)
inline

Definition at line 1194 of file RNTupleDescriptor.hxx.

◆ TypeName()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::TypeName ( const std::string &  typeName)
inline

Definition at line 1174 of file RNTupleDescriptor.hxx.

◆ TypeVersion()

RFieldDescriptorBuilder & ROOT::Experimental::Internal::RFieldDescriptorBuilder::TypeVersion ( std::uint32_t  typeVersion)
inline

Definition at line 1149 of file RNTupleDescriptor.hxx.

Member Data Documentation

◆ fField

RFieldDescriptor ROOT::Experimental::Internal::RFieldDescriptorBuilder::fField = RFieldDescriptor()
private

Definition at line 1122 of file RNTupleDescriptor.hxx.

Libraries for ROOT::Experimental::Internal::RFieldDescriptorBuilder:

The documentation for this class was generated from the following files: