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 552 of file RNTupleDescriptor.hxx.
Public Member Functions | |
RDanglingFieldDescriptor ()=default | |
Make an empty dangling field descriptor. | |
RDanglingFieldDescriptor (const RFieldDescriptor &fieldDesc) | |
Make a new RDanglingFieldDescriptor based off an existing descriptor. | |
RDanglingFieldDescriptor & | FieldDescription (const std::string &fieldDescription) |
RDanglingFieldDescriptor & | FieldId (DescriptorId_t fieldId) |
RDanglingFieldDescriptor & | FieldName (const std::string &fieldName) |
RDanglingFieldDescriptor & | FieldVersion (const RNTupleVersion &fieldVersion) |
RResult< RFieldDescriptor > | MakeDescriptor () const |
Attempt to make a field descriptor. | |
RDanglingFieldDescriptor & | NRepetitions (std::uint64_t nRepetitions) |
RDanglingFieldDescriptor & | Structure (const ENTupleStructure &structure) |
RDanglingFieldDescriptor & | TypeName (const std::string &typeName) |
RDanglingFieldDescriptor & | TypeVersion (const RNTupleVersion &typeVersion) |
Static Public Member Functions | |
static RDanglingFieldDescriptor | FromField (const Detail::RFieldBase &field) |
Make a new RDanglingFieldDescriptor based off a live NTuple field. | |
Private Attributes | |
RFieldDescriptor | fField = RFieldDescriptor() |
#include <ROOT/RNTupleDescriptor.hxx>
|
default |
Make an empty dangling field descriptor.
|
explicit |
Make a new RDanglingFieldDescriptor based off an existing descriptor.
Relationship information is lost during the conversion to a dangling descriptor:
These properties must be set using RNTupleDescriptorBuilder::AddFieldLink().
Definition at line 943 of file RNTupleDescriptor.cxx.
|
inline |
Definition at line 586 of file RNTupleDescriptor.hxx.
|
inline |
Definition at line 570 of file RNTupleDescriptor.hxx.
|
inline |
Definition at line 582 of file RNTupleDescriptor.hxx.
|
inline |
Definition at line 574 of file RNTupleDescriptor.hxx.
|
static |
Make a new RDanglingFieldDescriptor based off a live NTuple field.
Definition at line 951 of file RNTupleDescriptor.cxx.
ROOT::Experimental::RResult< ROOT::Experimental::RFieldDescriptor > ROOT::Experimental::RDanglingFieldDescriptor::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 963 of file RNTupleDescriptor.cxx.
|
inline |
Definition at line 594 of file RNTupleDescriptor.hxx.
|
inline |
Definition at line 598 of file RNTupleDescriptor.hxx.
|
inline |
Definition at line 590 of file RNTupleDescriptor.hxx.
|
inline |
Definition at line 578 of file RNTupleDescriptor.hxx.
|
private |
Definition at line 554 of file RNTupleDescriptor.hxx.