29 static const std::string empty =
"";
33std::optional<ROOT::Experimental::Internal::RNTupleProcessorEntry::FieldIndex_t>
35 std::string_view typeName)
const
38 if (it == fFieldName2Index.end()) {
46 if (fProcessorValues[idx].fField->GetTypeName() == typeName) {
66 auto fieldIdx = fProcessorValues.size();
73 fProcessorValues.emplace_back(
80 std::unique_ptr<ROOT::RFieldBase>
field)
108 if (fProcessorValues[
fieldIdx].fIsValid) {
113std::unordered_set<ROOT::Experimental::Internal::RNTupleProcessorEntry::FieldIndex_t>
118 std::unordered_set<FieldIndex_t>
fieldIdxs(fProcessorValues.size());
120 [i = 0]()
mutable { return i++; });
#define R__FAIL(msg)
Short-hand to return an RResult<T> in an error state; the RError is implicitly converted into RResult...
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
std::unordered_set< FieldIndex_t > GetFieldIndices() const
Get all field indices of this entry.
std::uint64_t FieldIndex_t
std::vector< RProcessorValue > fProcessorValues
std::optional< FieldIndex_t > FindFieldIndex(std::string_view canonicalFieldName, std::string_view typeName) const
Find the field index of the provided field in the entry.
std::unordered_map< std::string, std::vector< FieldIndex_t > > fFieldName2Index
void BindRawPtr(FieldIndex_t fieldIdx, void *valuePtr)
Bind a new value pointer to a field in the entry.
void UpdateField(FieldIndex_t fieldIdx, std::unique_ptr< ROOT::RFieldBase > field)
Update a field in the entry, preserving the value pointer.
const std::string & FindFieldName(FieldIndex_t fieldIdx) const
Find the name of a field from its field index.
void ReadValue(FieldIndex_t fieldIdx, ROOT::NTupleSize_t entryIdx)
Read the field value corresponding to the given field index for the provided entry index.
FieldIndex_t AddField(const std::string &qualifiedFieldName, std::unique_ptr< ROOT::RFieldBase > field, void *valuePtr, const RNTupleProcessorProvenance &provenance)
Add a new field to the entry.
Base class for all ROOT issued exceptions.
const_iterator begin() const
std::uint64_t NTupleSize_t
Integer type long enough to hold the maximum number of entries in a column.