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 42 of file REntry.hxx.
Public Types | |
using | Iterator_t = decltype(fValues)::iterator |
Public Member Functions | |
REntry ()=default | |
REntry (const REntry &other)=delete | |
~REntry () | |
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. | |
Iterator_t | begin () |
void | CaptureValue (const Detail::RFieldValue &value) |
Adds a value whose storage is not managed by the entry. | |
Iterator_t | end () |
template<typename T > | |
T * | Get (std::string_view fieldName) |
Detail::RFieldValue | GetValue (std::string_view fieldName) |
REntry & | operator= (const REntry &other)=delete |
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::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 |
#include <ROOT/REntry.hxx>
using ROOT::Experimental::REntry::Iterator_t = decltype(fValues)::iterator |
Definition at line 51 of file REntry.hxx.
|
default |
|
delete |
ROOT::Experimental::REntry::~REntry | ( | ) |
Definition at line 19 of file REntry.cxx.
void ROOT::Experimental::REntry::AddValue | ( | const Detail::RFieldValue & | value | ) |
Adds a value whose storage is managed by the entry.
Definition at line 26 of file REntry.cxx.
|
inline |
While building the entry, adds a new value to the list and return the value's shared pointer.
Definition at line 66 of file REntry.hxx.
|
inline |
Definition at line 92 of file REntry.hxx.
void ROOT::Experimental::REntry::CaptureValue | ( | const Detail::RFieldValue & | value | ) |
Adds a value whose storage is not managed by the entry.
Definition at line 32 of file REntry.cxx.
|
inline |
Definition at line 93 of file REntry.hxx.
|
inline |
Definition at line 82 of file REntry.hxx.
|
inline |
Definition at line 73 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 48 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 46 of file REntry.hxx.
|
private |
Definition at line 43 of file REntry.hxx.