An RNTupleView provides read-only access to a single field of an RNTuple.
T | The type of the object that will be read by the view; can be void if unknown at compile time. |
The view owns a field and its underlying columns in order to fill an RField::RValue 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 (
View can only be created by a reader or by a collection view.
Example: read an RNTuple's field with a view**
Example: read an RNTuple's collection subfield with a view**
Definition at line 85 of file RNTupleView.hxx.
Public Member Functions | |
RNTupleViewBase (const RNTupleViewBase &other)=delete | |
RNTupleViewBase (RNTupleViewBase &&other)=default | |
~RNTupleViewBase ()=default | |
void | Bind (std::shared_ptr< T > objPtr) |
void | BindRawPtr (T *rawPtr) |
ROOT::RFieldBase::RBulk | CreateBulk () |
void | EmplaceNew () |
const ROOT::RFieldBase & | GetField () const |
ROOT::RNTupleGlobalRange | GetFieldRange () const |
Returns the global field range of this view. | |
const ROOT::RFieldBase::RValue & | GetValue () const |
RNTupleViewBase & | operator= (const RNTupleViewBase &other)=delete |
RNTupleViewBase & | operator= (RNTupleViewBase &&other)=default |
Protected Member Functions | |
RNTupleViewBase (std::unique_ptr< ROOT::RFieldBase > field, ROOT::RNTupleGlobalRange range) | |
RNTupleViewBase (std::unique_ptr< ROOT::RFieldBase > field, ROOT::RNTupleGlobalRange range, std::shared_ptr< T > objPtr) | |
RNTupleViewBase (std::unique_ptr< ROOT::RFieldBase > field, ROOT::RNTupleGlobalRange range, T *rawPtr) | |
Static Protected Member Functions | |
static std::unique_ptr< ROOT::RFieldBase > | CreateField (ROOT::DescriptorId_t fieldId, ROOT::Experimental::Internal::RPageSource &pageSource) |
Protected Attributes | |
std::unique_ptr< ROOT::RFieldBase > | fField |
ROOT::RNTupleGlobalRange | fFieldRange |
ROOT::RFieldBase::RValue | fValue |
#include <ROOT/RNTupleView.hxx>
|
inlineprotected |
Definition at line 109 of file RNTupleView.hxx.
|
inlineprotected |
Definition at line 114 of file RNTupleView.hxx.
|
inlineprotected |
Definition at line 119 of file RNTupleView.hxx.
|
delete |
|
default |
|
default |
|
inline |
Definition at line 150 of file RNTupleView.hxx.
|
inline |
Definition at line 151 of file RNTupleView.hxx.
|
inline |
Definition at line 134 of file RNTupleView.hxx.
|
inlinestaticprotected |
Definition at line 92 of file RNTupleView.hxx.
|
inline |
Definition at line 152 of file RNTupleView.hxx.
|
inline |
Definition at line 133 of file RNTupleView.hxx.
|
inline |
Returns the global field range of this view.
This may differ from the RNTuple's entry range in case of subfields and can be used to iterate over all the concatenated elements of the subfield without caring which entry they belong to. Throws an RException if the underlying field of this view is empty, i.e. if it's a class or record field with no associated columns.
Definition at line 142 of file RNTupleView.hxx.
|
inline |
Definition at line 136 of file RNTupleView.hxx.
|
delete |
|
default |
|
protected |
Definition at line 87 of file RNTupleView.hxx.
|
protected |
Definition at line 88 of file RNTupleView.hxx.
|
protected |
Definition at line 89 of file RNTupleView.hxx.