Collection of values in an RNTupleProcessor, analogous to REntry, with checks and support for missing values.
Definition at line 90 of file RNTupleProcessorEntry.hxx.
|
| 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.
|
| |
| void | BindRawPtr (FieldIndex_t fieldIdx, void *valuePtr) |
| | Bind a new value pointer to a field in the entry.
|
| |
| void | Clear () |
| | Clear all fields from the entry.
|
| |
| 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.
|
| |
| const std::string & | FindFieldName (FieldIndex_t fieldIdx) const |
| | Find the name of a field from its field index.
|
| |
| std::unordered_set< FieldIndex_t > | GetFieldIndices () const |
| | Get all field indices of this entry.
|
| |
| const RNTupleProcessorProvenance & | GetFieldProvenance (FieldIndex_t fieldIdx) const |
| | Get the processor provenance of a field in the entry.
|
| |
| std::string | GetQualifiedFieldName (FieldIndex_t fieldIdx) const |
| | Get the name of a field in the entry, including its parent fields.
|
| |
| const ROOT::RFieldBase::RValue & | GetValue (FieldIndex_t fieldIdx) const |
| |
| bool | IsValidField (FieldIndex_t fieldIdx) const |
| | Check whether a field is valid for reading.
|
| |
| void | ReadValue (FieldIndex_t fieldIdx, ROOT::NTupleSize_t entryIdx) |
| | Read the field value corresponding to the given field index for the provided entry index.
|
| |
| void | SetFieldValidity (FieldIndex_t fieldIdx, bool isValid) |
| | Set the validity of a field, i.e.
|
| |
| void | UpdateField (FieldIndex_t fieldIdx, std::unique_ptr< ROOT::RFieldBase > field) |
| | Update a field in the entry, preserving the value pointer.
|
| |
#include <ROOT/RNTupleProcessorEntry.hxx>
◆ FieldIndex_t
◆ AddField()
Add a new field to the entry.
- Parameters
-
| [in] | qualifiedFieldName | Name of the field to add, including its parent field if applicable. |
| [in] | field | Reference to the field to add, used to to create its corresponding RValue. |
| [in] | valuePtr | Pointer to an object corresponding to the field's type to bind to its value. If this is a nullptr, a pointer will be created. |
| [in] | provenance | Processor provenance of the field. |
- Returns
- The field index of the newly added field.
Definition at line 55 of file RNTupleProcessorEntry.cxx.
◆ BindRawPtr()
| void ROOT::Experimental::Internal::RNTupleProcessorEntry::BindRawPtr |
( |
FieldIndex_t | fieldIdx, |
|
|
void * | valuePtr ) |
Bind a new value pointer to a field in the entry.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
| [in] | valuePtr | Pointer to the value to bind to the field. |
Definition at line 98 of file RNTupleProcessorEntry.cxx.
◆ Clear()
| void ROOT::Experimental::Internal::RNTupleProcessorEntry::Clear |
( |
| ) |
|
|
inline |
◆ FindFieldIndex()
Find the field index of the provided field in the entry.
- Parameters
-
| [in] | canonicalFieldName | The name of the field in the entry, including its processor name prefixes and parent field names, if applicable. |
- Returns
- A
std::optional containing the field index if it was found.
Definition at line 34 of file RNTupleProcessorEntry.cxx.
◆ FindFieldName()
| const std::string & ROOT::Experimental::Internal::RNTupleProcessorEntry::FindFieldName |
( |
FieldIndex_t | fieldIdx | ) |
const |
Find the name of a field from its field index.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
- Warning
- This function has linear complexity, only use it for more helpful error messages!
Definition at line 18 of file RNTupleProcessorEntry.cxx.
◆ GetFieldIndices()
◆ GetFieldProvenance()
Get the processor provenance of a field in the entry.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
Definition at line 210 of file RNTupleProcessorEntry.hxx.
◆ GetQualifiedFieldName()
| std::string ROOT::Experimental::Internal::RNTupleProcessorEntry::GetQualifiedFieldName |
( |
FieldIndex_t | fieldIdx | ) |
const |
|
inline |
Get the name of a field in the entry, including its parent fields.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
Definition at line 220 of file RNTupleProcessorEntry.hxx.
◆ GetValue()
◆ IsValidField()
| bool ROOT::Experimental::Internal::RNTupleProcessorEntry::IsValidField |
( |
FieldIndex_t | fieldIdx | ) |
const |
|
inline |
Check whether a field is valid for reading.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
Definition at line 143 of file RNTupleProcessorEntry.hxx.
◆ ReadValue()
Read the field value corresponding to the given field index for the provided entry index.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
| [in] | entryIdx | The entry number to read. |
Definition at line 104 of file RNTupleProcessorEntry.cxx.
◆ SetFieldValidity()
| void ROOT::Experimental::Internal::RNTupleProcessorEntry::SetFieldValidity |
( |
FieldIndex_t | fieldIdx, |
|
|
bool | isValid ) |
|
inline |
Set the validity of a field, i.e.
whether it is possible to read its value in the current entry.
- Parameters
-
| [in] | fieldIdx | The index of the field in the entry. |
| [in] | isValid | The new validity of the field. |
Definition at line 133 of file RNTupleProcessorEntry.hxx.
◆ UpdateField()
Update a field in the entry, preserving the value pointer.
- Parameters
-
| [in] | fieldIdx | Index of the field to update. |
| [in] | field | The new field to use in the entry. |
Definition at line 79 of file RNTupleProcessorEntry.cxx.
◆ fFieldName2Index
| std::unordered_map<std::string, std::vector<FieldIndex_t> > ROOT::Experimental::Internal::RNTupleProcessorEntry::fFieldName2Index |
|
private |
◆ fProcessorValues
| std::vector<RProcessorValue> ROOT::Experimental::Internal::RNTupleProcessorEntry::fProcessorValues |
|
private |
The documentation for this class was generated from the following files: