Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
ROOT::RNTupleCollectionView Class Reference

A view for a collection, that can itself generate new ntuple views for its nested fields.

Definition at line 306 of file RNTupleView.hxx.

Public Member Functions

 RNTupleCollectionView (const RNTupleCollectionView &other)=delete
 
 RNTupleCollectionView (RNTupleCollectionView &&other)=default
 
 ~RNTupleCollectionView ()=default
 
ROOT::RNTupleLocalRange GetCollectionRange (RNTupleLocalIndex localIndex)
 
ROOT::RNTupleLocalRange GetCollectionRange (ROOT::NTupleSize_t globalIndex)
 
RNTupleCollectionView GetCollectionView (std::string_view fieldName)
 Provides access to a collection field, that can itself generate new RNTupleViews for its nested fields.
 
template<typename T >
RNTupleDirectAccessView< T > GetDirectAccessView (std::string_view fieldName)
 Provides direct access to the I/O buffers of a mappable (sub)field.
 
template<typename T >
RNTupleView< T > GetView (std::string_view fieldName)
 Provides access to an individual (sub)field.
 
std::uint64_t operator() (RNTupleLocalIndex localIndex)
 
std::uint64_t operator() (ROOT::NTupleSize_t globalIndex)
 
RNTupleCollectionViewoperator= (const RNTupleCollectionView &other)=delete
 
RNTupleCollectionViewoperator= (RNTupleCollectionView &&other)=default
 

Private Member Functions

 RNTupleCollectionView (ROOT::DescriptorId_t fieldId, const std::string &fieldName, ROOT::Internal::RPageSource *source)
 
ROOT::DescriptorId_t GetFieldId (std::string_view fieldName)
 

Static Private Member Functions

static RNTupleCollectionView Create (ROOT::DescriptorId_t fieldId, ROOT::Internal::RPageSource *source)
 

Private Attributes

ROOT::RField< RNTupleCardinality< std::uint64_t > > fField
 
ROOT::Internal::RPageSourcefSource
 
ROOT::RFieldBase::RValue fValue
 

Friends

class ROOT::RNTupleReader
 

#include <ROOT/RNTupleView.hxx>

Constructor & Destructor Documentation

◆ RNTupleCollectionView() [1/3]

ROOT::RNTupleCollectionView::RNTupleCollectionView ( ROOT::DescriptorId_t fieldId,
const std::string & fieldName,
ROOT::Internal::RPageSource * source )
inlineprivate

Definition at line 314 of file RNTupleView.hxx.

◆ RNTupleCollectionView() [2/3]

ROOT::RNTupleCollectionView::RNTupleCollectionView ( const RNTupleCollectionView & other)
delete

◆ RNTupleCollectionView() [3/3]

ROOT::RNTupleCollectionView::RNTupleCollectionView ( RNTupleCollectionView && other)
default

◆ ~RNTupleCollectionView()

ROOT::RNTupleCollectionView::~RNTupleCollectionView ( )
default

Member Function Documentation

◆ Create()

static RNTupleCollectionView ROOT::RNTupleCollectionView::Create ( ROOT::DescriptorId_t fieldId,
ROOT::Internal::RPageSource * source )
inlinestaticprivate

Definition at line 322 of file RNTupleView.hxx.

◆ GetCollectionRange() [1/2]

ROOT::RNTupleLocalRange ROOT::RNTupleCollectionView::GetCollectionRange ( RNTupleLocalIndex localIndex)
inline

Definition at line 364 of file RNTupleView.hxx.

◆ GetCollectionRange() [2/2]

ROOT::RNTupleLocalRange ROOT::RNTupleCollectionView::GetCollectionRange ( ROOT::NTupleSize_t globalIndex)
inline

Definition at line 355 of file RNTupleView.hxx.

◆ GetCollectionView()

RNTupleCollectionView ROOT::RNTupleCollectionView::GetCollectionView ( std::string_view fieldName)
inline

Provides access to a collection field, that can itself generate new RNTupleViews for its nested fields.

Raises an exception if:

  • there is no field with the given name or,
  • the field is not a collection
See also
ROOT::RNTupleReader::GetCollectionView(std::string_view)

Definition at line 407 of file RNTupleView.hxx.

◆ GetDirectAccessView()

template<typename T >
RNTupleDirectAccessView< T > ROOT::RNTupleCollectionView::GetDirectAccessView ( std::string_view fieldName)
inline

Provides direct access to the I/O buffers of a mappable (sub)field.

Raises an exception if there is no field with the given name. Attempting to access the values of a direct-access view for non-mappable fields will yield compilation errors.

See also
ROOT::RNTupleReader::DirectAccessView(std::string_view)

Definition at line 393 of file RNTupleView.hxx.

◆ GetFieldId()

ROOT::DescriptorId_t ROOT::RNTupleCollectionView::GetFieldId ( std::string_view fieldName)
inlineprivate

Definition at line 337 of file RNTupleView.hxx.

◆ GetView()

template<typename T >
RNTupleView< T > ROOT::RNTupleCollectionView::GetView ( std::string_view fieldName)
inline

Provides access to an individual (sub)field.

Raises an exception if there is no field with the given name.

See also
ROOT::RNTupleReader::GetView(std::string_view)

Definition at line 379 of file RNTupleView.hxx.

◆ operator()() [1/2]

std::uint64_t ROOT::RNTupleCollectionView::operator() ( RNTupleLocalIndex localIndex)
inline
See also
RNTupleView::operator()(RNTupleLocalIndex)

Definition at line 420 of file RNTupleView.hxx.

◆ operator()() [2/2]

std::uint64_t ROOT::RNTupleCollectionView::operator() ( ROOT::NTupleSize_t globalIndex)
inline

◆ operator=() [1/2]

RNTupleCollectionView & ROOT::RNTupleCollectionView::operator= ( const RNTupleCollectionView & other)
delete

◆ operator=() [2/2]

RNTupleCollectionView & ROOT::RNTupleCollectionView::operator= ( RNTupleCollectionView && other)
default

Friends And Related Symbol Documentation

◆ ROOT::RNTupleReader

friend class ROOT::RNTupleReader
friend

Definition at line 307 of file RNTupleView.hxx.

Member Data Documentation

◆ fField

ROOT::RField<RNTupleCardinality<std::uint64_t> > ROOT::RNTupleCollectionView::fField
private

Definition at line 311 of file RNTupleView.hxx.

◆ fSource

ROOT::Internal::RPageSource* ROOT::RNTupleCollectionView::fSource
private

Definition at line 310 of file RNTupleView.hxx.

◆ fValue

ROOT::RFieldBase::RValue ROOT::RNTupleCollectionView::fValue
private

Definition at line 312 of file RNTupleView.hxx.

Libraries for ROOT::RNTupleCollectionView:

The documentation for this class was generated from the following file: