The REntry is a collection of values in an ntuple corresponding to a complete row in the data set.
The entry provides a memory-managed binder for a set of values. Through shared pointers, the memory locations that are associated to values are managed.
Definition at line 51 of file REntry.hxx.
Classes | |
class | RFieldToken |
The field token identifies a (sub)field in this entry. More... | |
Public Types | |
using | ConstIterator_t = decltype(fValues)::const_iterator |
Public Member Functions | |
REntry (const REntry &other)=delete | |
REntry (REntry &&other)=default | |
~REntry ()=default | |
ConstIterator_t | begin () const |
template<typename T > | |
void | BindRawPtr (RFieldToken token, T *rawPtr) |
template<typename T > | |
void | BindRawPtr (std::string_view fieldName, T *rawPtr) |
template<typename T > | |
void | BindValue (RFieldToken token, std::shared_ptr< T > objPtr) |
template<typename T > | |
void | BindValue (std::string_view fieldName, std::shared_ptr< T > objPtr) |
void | EmplaceNewValue (RFieldToken token) |
void | EmplaceNewValue (std::string_view fieldName) |
ConstIterator_t | end () const |
std::uint64_t | GetModelId () const |
template<typename T > | |
std::shared_ptr< T > | GetPtr (RFieldToken token) const |
template<typename T > | |
std::shared_ptr< T > | GetPtr (std::string_view fieldName) const |
std::uint64_t | GetSchemaId () const |
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. | |
REntry & | operator= (const REntry &other)=delete |
REntry & | operator= (REntry &&other)=default |
Private Member Functions | |
REntry ()=default | |
REntry (std::uint64_t modelId, std::uint64_t schemaId) | |
template<typename T , typename... ArgsT> | |
std::shared_ptr< T > | AddValue (RField< T > &field, ArgsT &&...args) |
While building the entry, adds a new value to the list and return the value's shared pointer. | |
void | AddValue (RFieldBase::RValue &&value) |
std::size_t | Append () |
void | EnsureMatchingModel (RFieldToken token) const |
template<typename T > | |
void | EnsureMatchingType (RFieldToken token) const |
void | Read (NTupleSize_t index) |
void | UpdateValue (RFieldToken token, RFieldBase::RValue &&value) |
Update the RValue for a field in the entry. | |
void | UpdateValue (RFieldToken token, RFieldBase::RValue &value) |
Private Attributes | |
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::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< RFieldBase::RValue > | fValues |
Corresponds to the fields of the linked model. | |
Friends | |
class | RNTupleChainProcessor |
class | RNTupleFillContext |
class | RNTupleModel |
class | RNTupleProcessor |
class | RNTupleReader |
#include <ROOT/REntry.hxx>
using ROOT::Experimental::REntry::ConstIterator_t = decltype(fValues)::const_iterator |
Definition at line 146 of file REntry.hxx.
|
privatedefault |
|
inlineexplicitprivate |
Definition at line 86 of file REntry.hxx.
|
delete |
|
default |
|
default |
|
inlineprivate |
While building the entry, adds a new value to the list and return the value's shared pointer.
Definition at line 96 of file REntry.hxx.
|
inlineprivate |
Definition at line 88 of file REntry.hxx.
|
inlineprivate |
Definition at line 116 of file REntry.hxx.
|
inline |
Definition at line 217 of file REntry.hxx.
|
inline |
Definition at line 187 of file REntry.hxx.
|
inline |
Definition at line 195 of file REntry.hxx.
|
inline |
Definition at line 173 of file REntry.hxx.
|
inline |
Definition at line 181 of file REntry.hxx.
|
inline |
Definition at line 164 of file REntry.hxx.
|
inline |
Definition at line 170 of file REntry.hxx.
|
inline |
Definition at line 218 of file REntry.hxx.
|
inlineprivate |
Definition at line 125 of file REntry.hxx.
|
inlineprivate |
Definition at line 134 of file REntry.hxx.
|
inline |
Definition at line 214 of file REntry.hxx.
|
inline |
Definition at line 201 of file REntry.hxx.
|
inline |
Definition at line 209 of file REntry.hxx.
|
inline |
Definition at line 215 of file REntry.hxx.
|
inline |
The ordinal of the (sub)field fieldName; can be used in other methods to address the corresponding value.
Definition at line 155 of file REntry.hxx.
|
inlineprivate |
Definition at line 109 of file REntry.hxx.
|
inlineprivate |
Update the RValue for a field in the entry.
To be used when its underlying RFieldBase changes, which typically happens when page source the field values are read from changes.
Definition at line 106 of file REntry.hxx.
|
inlineprivate |
Definition at line 107 of file REntry.hxx.
|
friend |
Definition at line 56 of file REntry.hxx.
|
friend |
Definition at line 54 of file REntry.hxx.
|
friend |
Definition at line 52 of file REntry.hxx.
|
friend |
Definition at line 55 of file REntry.hxx.
|
friend |
Definition at line 53 of file REntry.hxx.
|
private |
For fast lookup of token IDs given a (sub)field name present in the entry.
Definition at line 81 of file REntry.hxx.
|
private |
The entry must be linked to a specific model, identified by a model ID.
Definition at line 75 of file REntry.hxx.
|
private |
The entry and its tokens are also linked to a specific schema, identified by a schema ID.
Definition at line 77 of file REntry.hxx.
|
private |
Corresponds to the fields of the linked model.
Definition at line 79 of file REntry.hxx.