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 43 of file REntry.hxx.
Public Types | |
| using | Iterator_t = decltype(fValues)::iterator |
Public Member Functions | |
| REntry (const REntry &other)=delete | |
| REntry (REntry &&other)=default | |
| ~REntry () | |
| Iterator_t | begin () |
| void | CaptureValueUnsafe (std::string_view fieldName, void *where) |
| Iterator_t | end () |
| template<typename T > | |
| T * | Get (std::string_view fieldName) const |
| std::uint64_t | GetModelId () const |
| Detail::RFieldValue | GetValue (std::string_view fieldName) const |
| REntry & | operator= (const REntry &other)=delete |
| REntry & | operator= (REntry &&other)=default |
Private Member Functions | |
| REntry ()=default | |
| REntry (std::uint64_t modelId) | |
| void | AddValue (const Detail::RFieldValue &value) |
| Adds a value whose storage is managed by the entry. | |
| 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 | CaptureValue (const Detail::RFieldValue &value) |
| Adds a value whose storage is not managed by the entry. | |
Private Attributes | |
| std::vector< std::size_t > | fManagedValues |
| Points into fValues and indicates the values that are owned by the entry and need to be destructed. | |
| std::uint64_t | fModelId = 0 |
| The entry must be linked to a specific model (or one if its clones), identified by a model ID. | |
| std::vector< std::shared_ptr< void > > | fValuePtrs |
| The objects involed in serialization and deserialization might be used long after the entry is gone: hence the shared pointer. | |
| std::vector< Detail::RFieldValue > | fValues |
| Corresponds to the top-level fields of the linked model. | |
Friends | |
| class | RNTupleModel |
#include <ROOT/REntry.hxx>
| using ROOT::Experimental::REntry::Iterator_t = decltype(fValues)::iterator |
Definition at line 77 of file REntry.hxx.
|
privatedefault |
|
inlineexplicitprivate |
Definition at line 59 of file REntry.hxx.
|
delete |
|
default |
| ROOT::Experimental::REntry::~REntry | ( | ) |
Definition at line 22 of file REntry.cxx.
|
private |
Adds a value whose storage is managed by the entry.
Definition at line 29 of file REntry.cxx.
|
inlineprivate |
While building the entry, adds a new value to the list and return the value's shared pointer.
Definition at line 69 of file REntry.hxx.
|
inline |
Definition at line 110 of file REntry.hxx.
|
private |
Adds a value whose storage is not managed by the entry.
Definition at line 35 of file REntry.cxx.
| void ROOT::Experimental::REntry::CaptureValueUnsafe | ( | std::string_view | fieldName, |
| void * | where | ||
| ) |
Definition at line 40 of file REntry.cxx.
|
inline |
Definition at line 111 of file REntry.hxx.
|
inline |
Definition at line 97 of file REntry.hxx.
|
inline |
Definition at line 108 of file REntry.hxx.
|
inline |
Definition at line 87 of file REntry.hxx.
|
friend |
Definition at line 44 of file REntry.hxx.
|
private |
Points into fValues and indicates the values that are owned by the entry and need to be destructed.
Definition at line 54 of file REntry.hxx.
|
private |
The entry must be linked to a specific model (or one if its clones), identified by a model ID.
Definition at line 47 of file REntry.hxx.
|
private |
The objects involed in serialization and deserialization might be used long after the entry is gone: hence the shared pointer.
Definition at line 52 of file REntry.hxx.
|
private |
Corresponds to the top-level fields of the linked model.
Definition at line 49 of file REntry.hxx.