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

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

Definition at line 268 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)
 Raises an exception if there is no field with the given name.
 
template<typename T >
RNTupleDirectAccessView< T > GetDirectAccessView (std::string_view fieldName)
 Raises an exception if there is no field with the given name.
 
template<typename T >
RNTupleView< T > GetView (std::string_view fieldName)
 Raises an exception if there is no field with the given name.
 
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, Internal::RPageSource *source)
 
ROOT::DescriptorId_t GetFieldId (std::string_view fieldName)
 

Static Private Member Functions

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

Private Attributes

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

Friends

class RNTupleReader
 

#include <ROOT/RNTupleView.hxx>

Constructor & Destructor Documentation

◆ RNTupleCollectionView() [1/3]

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

Definition at line 276 of file RNTupleView.hxx.

◆ RNTupleCollectionView() [2/3]

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

◆ RNTupleCollectionView() [3/3]

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

◆ ~RNTupleCollectionView()

ROOT::Experimental::RNTupleCollectionView::~RNTupleCollectionView ( )
default

Member Function Documentation

◆ Create()

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

Definition at line 283 of file RNTupleView.hxx.

◆ GetCollectionRange() [1/2]

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

Definition at line 325 of file RNTupleView.hxx.

◆ GetCollectionRange() [2/2]

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

Definition at line 316 of file RNTupleView.hxx.

◆ GetCollectionView()

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

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

Definition at line 353 of file RNTupleView.hxx.

◆ GetDirectAccessView()

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

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

Definition at line 345 of file RNTupleView.hxx.

◆ GetFieldId()

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

Definition at line 298 of file RNTupleView.hxx.

◆ GetView()

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

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

Definition at line 336 of file RNTupleView.hxx.

◆ operator()() [1/2]

std::uint64_t ROOT::Experimental::RNTupleCollectionView::operator() ( RNTupleLocalIndex localIndex)
inline

Definition at line 364 of file RNTupleView.hxx.

◆ operator()() [2/2]

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

Definition at line 358 of file RNTupleView.hxx.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Friends And Related Symbol Documentation

◆ RNTupleReader

friend class RNTupleReader
friend

Definition at line 269 of file RNTupleView.hxx.

Member Data Documentation

◆ fField

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

Definition at line 273 of file RNTupleView.hxx.

◆ fSource

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

Definition at line 272 of file RNTupleView.hxx.

◆ fValue

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

Definition at line 274 of file RNTupleView.hxx.

Libraries for ROOT::Experimental::RNTupleCollectionView:

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