An RNTupleView provides read-only access to a single field of the ntuple.
T | The type of the object that will be read by the view |
UserProvidedAddress | Whether the user provided an external memory location to read data into |
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 144 of file RNTupleView.hxx.
Public Member Functions | |
RNTupleView (const RNTupleView &other)=delete | |
RNTupleView (RNTupleView &&other)=default | |
~RNTupleView ()=default | |
void | Bind (std::shared_ptr< T > objPtr) |
void | BindRawPtr (T *rawPtr) |
void | EmplaceNew () |
const FieldT & | GetField () const |
RNTupleGlobalRange | GetFieldRange () const |
template<typename C = T, std::enable_if_t< Internal::isMappable< FieldT >, C * > = nullptr> | |
const C * | MapV (NTupleSize_t globalIndex, NTupleSize_t &nItems) |
template<typename C = T, std::enable_if_t< Internal::isMappable< FieldT >, C * > = nullptr> | |
const C * | MapV (RClusterIndex clusterIndex, NTupleSize_t &nItems) |
const T & | operator() (NTupleSize_t globalIndex) |
const T & | operator() (RClusterIndex clusterIndex) |
RNTupleView & | operator= (const RNTupleView &other)=delete |
RNTupleView & | operator= (RNTupleView &&other)=default |
Private Types | |
using | FieldT = RField< T > |
Private Member Functions | |
RNTupleView (DescriptorId_t fieldId, Internal::RPageSource *pageSource) | |
RNTupleView (DescriptorId_t fieldId, Internal::RPageSource *pageSource, std::shared_ptr< T > objPtr) | |
RNTupleView (DescriptorId_t fieldId, Internal::RPageSource *pageSource, T *rawPtr) | |
void | SetupField (DescriptorId_t fieldId, Internal::RPageSource *pageSource) |
Private Attributes | |
FieldT | fField |
fFieldId has fParent always set to null; views access nested fields without looking at the parent | |
RFieldBase::RValue | fValue |
Used as a Read() destination for fields that are not mappable. | |
Friends | |
class | RNTupleCollectionView |
class | RNTupleReader |
#include <ROOT/RNTupleView.hxx>
|
private |
Definition at line 148 of file RNTupleView.hxx.
|
inlineprivate |
Definition at line 166 of file RNTupleView.hxx.
|
inlineprivate |
Definition at line 173 of file RNTupleView.hxx.
|
inlineprivate |
Definition at line 180 of file RNTupleView.hxx.
|
delete |
|
default |
|
default |
|
inline |
Definition at line 231 of file RNTupleView.hxx.
|
inline |
Definition at line 240 of file RNTupleView.hxx.
|
inline |
Definition at line 249 of file RNTupleView.hxx.
|
inline |
Definition at line 194 of file RNTupleView.hxx.
|
inline |
Definition at line 195 of file RNTupleView.hxx.
|
inline |
Definition at line 219 of file RNTupleView.hxx.
|
inline |
Definition at line 226 of file RNTupleView.hxx.
|
inline |
Definition at line 197 of file RNTupleView.hxx.
|
inline |
Definition at line 207 of file RNTupleView.hxx.
|
delete |
|
default |
|
inlineprivate |
Definition at line 156 of file RNTupleView.hxx.
|
friend |
Definition at line 146 of file RNTupleView.hxx.
|
friend |
Definition at line 145 of file RNTupleView.hxx.
|
private |
fFieldId has fParent always set to null; views access nested fields without looking at the parent
Definition at line 152 of file RNTupleView.hxx.
|
private |
Used as a Read() destination for fields that are not mappable.
Definition at line 154 of file RNTupleView.hxx.