Logo ROOT  
Reference Guide
 
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 338 of file RNTupleView.hxx.

Public Member Functions

 RNTupleCollectionView (const RNTupleCollectionView &other)=delete
 
 RNTupleCollectionView (RNTupleCollectionView &&other)=default
 
 ~RNTupleCollectionView ()=default
 
RNTupleClusterRange GetCollectionRange (NTupleSize_t globalIndex)
 
RNTupleClusterRange GetCollectionRange (RClusterIndex clusterIndex)
 
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() (NTupleSize_t globalIndex)
 
std::uint64_t operator() (RClusterIndex clusterIndex)
 
RNTupleCollectionViewoperator= (const RNTupleCollectionView &other)=delete
 
RNTupleCollectionViewoperator= (RNTupleCollectionView &&other)=default
 

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

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

Friends

class RNTupleReader
 

#include <ROOT/RNTupleView.hxx>

Constructor & Destructor Documentation

◆ RNTupleCollectionView() [1/3]

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

Definition at line 346 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 ( DescriptorId_t  fieldId,
Internal::RPageSource source 
)
inlinestaticprivate

Definition at line 353 of file RNTupleView.hxx.

◆ GetCollectionRange() [1/2]

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

Definition at line 386 of file RNTupleView.hxx.

◆ GetCollectionRange() [2/2]

RNTupleClusterRange ROOT::Experimental::RNTupleCollectionView::GetCollectionRange ( RClusterIndex  clusterIndex)
inline

Definition at line 393 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 421 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 413 of file RNTupleView.hxx.

◆ GetFieldId()

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

Definition at line 368 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 404 of file RNTupleView.hxx.

◆ operator()() [1/2]

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

Definition at line 426 of file RNTupleView.hxx.

◆ operator()() [2/2]

std::uint64_t ROOT::Experimental::RNTupleCollectionView::operator() ( RClusterIndex  clusterIndex)
inline

Definition at line 432 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 339 of file RNTupleView.hxx.

Member Data Documentation

◆ fField

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

Definition at line 343 of file RNTupleView.hxx.

◆ fSource

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

Definition at line 342 of file RNTupleView.hxx.

◆ fValue

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

Definition at line 344 of file RNTupleView.hxx.

Libraries for ROOT::Experimental::RNTupleCollectionView:

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