The REntry is a collection of values in an RNTuple corresponding to a complete row in the data set.
The entry provides a memory-managed binder for a set of values read from fields in an RNTuple. The memory locations that are associated with values are managed through shared pointers.
Definition at line 47 of file REntry.hxx.
|
| | REntry (const REntry &other)=delete |
| |
| | REntry (REntry &&other)=default |
| |
| | ~REntry ()=default |
| |
| ConstIterator_t | begin () const |
| |
| template<typename T > |
| void | BindRawPtr (ROOT::RFieldToken token, T *rawPtr) |
| | Bind the value for the field, referenced by token, to rawPtr.
|
| |
| template<typename T > |
| void | BindRawPtr (std::string_view fieldName, T *rawPtr) |
| | Bind the value for the field, referenced by its name, to rawPtr.
|
| |
| template<typename T > |
| void | BindValue (ROOT::RFieldToken token, std::shared_ptr< T > objPtr) |
| | Bind the value for the field, referenced by token, to objPtr.
|
| |
| template<typename T > |
| void | BindValue (std::string_view fieldName, std::shared_ptr< T > objPtr) |
| | Bind the value for the field, referenced by its name, to objPtr.
|
| |
| void | EmplaceNewValue (ROOT::RFieldToken token) |
| | Create a new value for the field referenced by token.
|
| |
| void | EmplaceNewValue (std::string_view fieldName) |
| | Create a new value for the field referenced by its name.
|
| |
| ConstIterator_t | end () const |
| |
| std::uint64_t | GetModelId () const |
| |
| template<typename T > |
| std::shared_ptr< T > | GetPtr (ROOT::RFieldToken token) const |
| | Get the (typed) pointer to the value for the field referenced by token.
|
| |
| template<typename T > |
| std::shared_ptr< T > | GetPtr (std::string_view fieldName) const |
| | Get the (typed) pointer to the value for the field referenced by token.
|
| |
| std::uint64_t | GetSchemaId () const |
| |
| ROOT::RFieldToken | GetToken (std::string_view fieldName) const |
| | The ordinal of the (sub)field fieldName; can be used in other methods to address the corresponding value.
|
| |
| const std::string & | GetTypeName (ROOT::RFieldToken token) const |
| |
| const std::string & | GetTypeName (std::string_view fieldName) const |
| |
| REntry & | operator= (const REntry &other)=delete |
| |
| REntry & | operator= (REntry &&other)=default |
| |
|
| std::unordered_map< std::string, std::size_t > | fFieldName2Token |
| | For fast lookup of token IDs given a (sub)field name present in the entry.
|
| |
| std::vector< std::string > | fFieldTypes |
| | To ensure that the entry is standalone, a copy of all field types.
|
| |
| std::uint64_t | fModelId = 0 |
| | The entry must be linked to a specific model, identified by a model ID.
|
| |
| std::uint64_t | fSchemaId = 0 |
| | The entry and its tokens are also linked to a specific schema, identified by a schema ID.
|
| |
| std::vector< ROOT::RFieldBase::RValue > | fValues |
| | Corresponds to the fields of the linked model.
|
| |
| void ROOT::REntry::BindRawPtr |
( |
std::string_view | fieldName, |
|
|
T * | rawPtr ) |
|
inline |
Bind the value for the field, referenced by its name, to rawPtr.
The caller retains ownership of the object and must ensure it is kept alive when reading or writing using the entry.
Note: if T = void, type checks are disabled. It is the caller's responsibility to match the field and object types.
Definition at line 207 of file REntry.hxx.
| void ROOT::REntry::BindValue |
( |
std::string_view | fieldName, |
|
|
std::shared_ptr< T > | objPtr ) |
|
inline |
Bind the value for the field, referenced by its name, to objPtr.
Ownership is shared with the caller and the object will be kept alive until it is replaced (by a call to EmplaceNewValue, BindValue, or BindRawPtr) or the entry is destructed.
Note: if T = void, type checks are disabled. It is the caller's responsibility to match the field and object types.
Definition at line 183 of file REntry.hxx.
| std::shared_ptr< T > ROOT::REntry::GetPtr |
( |
std::string_view | fieldName | ) |
const |
|
inline |
Get the (typed) pointer to the value for the field referenced by token.
Ownership is shared and the caller can continue to use the object after the entry is destructed.
Note: if T = void, type checks are disabled. It is the caller's responsibility to use the returned pointer according to the field type.
Definition at line 230 of file REntry.hxx.