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 read from fields in an RNTuple. The memory locations that are associated with values are managed through shared pointers.
Definition at line 54 of file REntry.hxx.
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 (ROOT::RFieldToken token, T *rawPtr) |
template<typename T > | |
void | BindRawPtr (std::string_view fieldName, T *rawPtr) |
template<typename T > | |
void | BindValue (ROOT::RFieldToken token, std::shared_ptr< T > objPtr) |
template<typename T > | |
void | BindValue (std::string_view fieldName, std::shared_ptr< T > objPtr) |
void | EmplaceNewValue (ROOT::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 (ROOT::RFieldToken token) const |
template<typename T > | |
std::shared_ptr< T > | GetPtr (std::string_view fieldName) const |
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 |
Private Member Functions | |
REntry ()=default | |
Creation of entries can be done by the RNTupleModel, the RNTupleReader, or the RNTupleWriter. | |
REntry (std::uint64_t modelId, std::uint64_t schemaId) | |
template<typename T > | |
std::shared_ptr< T > | AddValue (ROOT::RField< T > &field) |
While building the entry, adds a new value for the field and returns the value's shared pointer. | |
void | AddValue (ROOT::RFieldBase::RValue &&value) |
std::size_t | Append () |
void | EnsureMatchingModel (ROOT::RFieldToken token) const |
template<typename T > | |
void | EnsureMatchingType (ROOT::RFieldToken token) const |
const std::string & | FindFieldName (ROOT::RFieldToken token) const |
This function has linear complexity, only use it for more helpful error messages! | |
void | Read (ROOT::NTupleSize_t index) |
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::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. | |
#include <ROOT/REntry.hxx>
using ROOT::REntry::ConstIterator_t = decltype(fValues)::const_iterator |
Definition at line 146 of file REntry.hxx.
|
privatedefault |
Creation of entries can be done by the RNTupleModel, the RNTupleReader, or the RNTupleWriter.
|
inlineexplicitprivate |
Definition at line 77 of file REntry.hxx.
|
default |
|
default |
|
inlineprivate |
While building the entry, adds a new value for the field and returns the value's shared pointer.
Definition at line 88 of file REntry.hxx.
|
inlineprivate |
Definition at line 79 of file REntry.hxx.
|
inlineprivate |
Definition at line 104 of file REntry.hxx.
|
inline |
Definition at line 225 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 226 of file REntry.hxx.
|
inlineprivate |
Definition at line 113 of file REntry.hxx.
|
inlineprivate |
Definition at line 135 of file REntry.hxx.
|
inlineprivate |
This function has linear complexity, only use it for more helpful error messages!
Definition at line 122 of file REntry.hxx.
|
inline |
Definition at line 222 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 223 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.
|
inline |
Definition at line 214 of file REntry.hxx.
|
inline |
Definition at line 220 of file REntry.hxx.
|
inlineprivate |
Definition at line 97 of file REntry.hxx.
|
friend |
Definition at line 60 of file REntry.hxx.
|
friend |
Definition at line 57 of file REntry.hxx.
|
friend |
Definition at line 61 of file REntry.hxx.
|
friend |
Definition at line 58 of file REntry.hxx.
|
friend |
Definition at line 59 of file REntry.hxx.
|
friend |
Definition at line 55 of file REntry.hxx.
|
friend |
Definition at line 56 of file REntry.hxx.
|
private |
For fast lookup of token IDs given a (sub)field name present in the entry.
Definition at line 71 of file REntry.hxx.
|
private |
To ensure that the entry is standalone, a copy of all field types.
Definition at line 73 of file REntry.hxx.
|
private |
The entry must be linked to a specific model, identified by a model ID.
Definition at line 65 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 67 of file REntry.hxx.
|
private |
Corresponds to the fields of the linked model.
Definition at line 69 of file REntry.hxx.