An RNTupleView provides read-only access to a single field of the ntuple.
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.
Fields of simple types with a Map() method will use that and thus expose zero-copy access.
Definition at line 152 of file RNTupleView.hxx.
Public Member Functions | |
RNTupleView (const RNTupleView &other)=delete | |
RNTupleView (DescriptorId_t fieldId, Detail::RPageSource *pageSource) | |
RNTupleView (RNTupleView &&other)=default | |
~RNTupleView () | |
RNTupleGlobalRange | GetFieldRange () const |
template<typename C = T> | |
std::enable_if_t< Internal::IsMappable< FieldT >::value, const C * > | MapV (const RClusterIndex &clusterIndex, NTupleSize_t &nItems) |
template<typename C = T> | |
std::enable_if_t< Internal::IsMappable< FieldT >::value, const C * > | MapV (NTupleSize_t globalIndex, NTupleSize_t &nItems) |
template<typename C = T> | |
std::enable_if_t< Internal::IsMappable< FieldT >::value, const C & > | operator() (const RClusterIndex &clusterIndex) |
template<typename C = T> | |
std::enable_if_t<!Internal::IsMappable< FieldT >::value, const C & > | operator() (const RClusterIndex &clusterIndex) |
template<typename C = T> | |
std::enable_if_t< Internal::IsMappable< FieldT >::value, const C & > | operator() (NTupleSize_t globalIndex) |
template<typename C = T> | |
std::enable_if_t<!Internal::IsMappable< FieldT >::value, const C & > | operator() (NTupleSize_t globalIndex) |
RNTupleView & | operator= (const RNTupleView &other)=delete |
RNTupleView & | operator= (RNTupleView &&other)=default |
Private Types | |
using | FieldT = RField< T > |
Private Attributes | |
FieldT | fField |
fFieldId has fParent always set to null; views access nested fields without looking at the parent | |
Detail::RFieldValue | fValue |
Used as a Read() destination for fields that are not mappable. | |
Friends | |
class | RNTupleViewCollection |
#include <ROOT/RNTupleView.hxx>
|
private |
Definition at line 155 of file RNTupleView.hxx.
|
inline |
Definition at line 165 of file RNTupleView.hxx.
|
delete |
|
default |
|
inline |
Definition at line 181 of file RNTupleView.hxx.
|
inline |
Definition at line 183 of file RNTupleView.hxx.
|
inline |
Definition at line 215 of file RNTupleView.hxx.
|
inline |
Definition at line 209 of file RNTupleView.hxx.
|
inline |
Definition at line 198 of file RNTupleView.hxx.
|
inline |
Definition at line 202 of file RNTupleView.hxx.
|
inline |
Definition at line 187 of file RNTupleView.hxx.
|
inline |
Definition at line 191 of file RNTupleView.hxx.
|
delete |
|
default |
|
friend |
Definition at line 153 of file RNTupleView.hxx.
|
private |
fFieldId has fParent always set to null; views access nested fields without looking at the parent
Definition at line 159 of file RNTupleView.hxx.
|
private |
Used as a Read() destination for fields that are not mappable.
Definition at line 161 of file RNTupleView.hxx.