ROOT 6.18/05 Reference Guide |
An RNTupleView provides read-only access to a single field of the ntuple.
(NB(jblomer): The ntuple view is very close to TTreeReader. Do we simply want to teach TTreeReader to deal with RNTuple?)
The view owns a field and its underlying columns in order to fill an ntuple value object with data. Data can be accessed by index. For top level fields, the index refers to the entry number. Fields that are part of nested collections have global index numbers that are derived from their parent indexes.
The RNTupleView object is an iterable. That means, all field values in the tree can be sequentially read from begin() to end().
For simple types, template specializations let the reading become a pure mapping into a page buffer.
Definition at line 86 of file RNTupleView.hxx.
Public Member Functions | |
RNTupleView (const RNTupleView &other)=delete | |
RNTupleView (RNTupleView &&other)=default | |
~RNTupleView () | |
const T & | operator() (NTupleSize_t index) |
RNTupleView & | operator= (const RNTupleView &other)=delete |
RNTupleView & | operator= (RNTupleView &&other)=default |
Protected Member Functions | |
RNTupleView (std::string_view fieldName, Detail::RPageSource *pageSource) | |
Protected Attributes | |
RField< T > | fField |
Detail::RFieldValue | fValue |
Friends | |
class | RNTupleReader |
class | RNTupleViewCollection |
#include <ROOT/RNTupleView.hxx>
|
inlineprotected |
Definition at line 93 of file RNTupleView.hxx.
|
delete |
|
default |
|
inline |
Definition at line 107 of file RNTupleView.hxx.
|
inline |
Definition at line 109 of file RNTupleView.hxx.
|
delete |
|
default |
|
friend |
Definition at line 87 of file RNTupleView.hxx.
|
friend |
Definition at line 88 of file RNTupleView.hxx.
|
protected |
Definition at line 91 of file RNTupleView.hxx.
|
protected |
Definition at line 92 of file RNTupleView.hxx.