Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RNTupleViewBase< T > Class Template Reference

template<typename T>
class ROOT::Experimental::RNTupleViewBase< T >

An RNTupleView provides read-only access to a single field of the ntuple.

Template Parameters
TThe type of the object that will be read by the view; can be void if unknown at compile time.

The view owns a field and its underlying columns in order to fill an RField::RValue 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.

View can only be created by a reader or by a collection view.

Definition at line 144 of file RNTupleView.hxx.

Public Member Functions

 RNTupleViewBase (const RNTupleViewBase &other)=delete
 
 RNTupleViewBase (RNTupleViewBase &&other)=default
 
 ~RNTupleViewBase ()=default
 
void Bind (std::shared_ptr< T > objPtr)
 
void BindRawPtr (T *rawPtr)
 
void EmplaceNew ()
 
const RFieldBaseGetField () const
 
RNTupleGlobalRange GetFieldRange () const
 
const RFieldBase::RValueGetValue () const
 
RNTupleViewBaseoperator= (const RNTupleViewBase &other)=delete
 
RNTupleViewBaseoperator= (RNTupleViewBase &&other)=default
 

Protected Member Functions

 RNTupleViewBase (std::unique_ptr< RFieldBase > field, RNTupleGlobalRange range)
 
 RNTupleViewBase (std::unique_ptr< RFieldBase > field, RNTupleGlobalRange range, std::shared_ptr< T > objPtr)
 
 RNTupleViewBase (std::unique_ptr< RFieldBase > field, RNTupleGlobalRange range, T *rawPtr)
 

Static Protected Member Functions

static std::unique_ptr< RFieldBaseCreateField (DescriptorId_t fieldId, Internal::RPageSource &pageSource)
 

Protected Attributes

std::unique_ptr< RFieldBasefField
 
RNTupleGlobalRange fFieldRange
 
RFieldBase::RValue fValue
 

#include <ROOT/RNTupleView.hxx>

Inheritance diagram for ROOT::Experimental::RNTupleViewBase< T >:
[legend]

Constructor & Destructor Documentation

◆ RNTupleViewBase() [1/5]

template<typename T >
ROOT::Experimental::RNTupleViewBase< T >::RNTupleViewBase ( std::unique_ptr< RFieldBase field,
RNTupleGlobalRange  range 
)
inlineprotected

Definition at line 167 of file RNTupleView.hxx.

◆ RNTupleViewBase() [2/5]

template<typename T >
ROOT::Experimental::RNTupleViewBase< T >::RNTupleViewBase ( std::unique_ptr< RFieldBase field,
RNTupleGlobalRange  range,
std::shared_ptr< T >  objPtr 
)
inlineprotected

Definition at line 172 of file RNTupleView.hxx.

◆ RNTupleViewBase() [3/5]

template<typename T >
ROOT::Experimental::RNTupleViewBase< T >::RNTupleViewBase ( std::unique_ptr< RFieldBase field,
RNTupleGlobalRange  range,
T *  rawPtr 
)
inlineprotected

Definition at line 177 of file RNTupleView.hxx.

◆ RNTupleViewBase() [4/5]

template<typename T >
ROOT::Experimental::RNTupleViewBase< T >::RNTupleViewBase ( const RNTupleViewBase< T > &  other)
delete

◆ RNTupleViewBase() [5/5]

template<typename T >
ROOT::Experimental::RNTupleViewBase< T >::RNTupleViewBase ( RNTupleViewBase< T > &&  other)
default

◆ ~RNTupleViewBase()

template<typename T >
ROOT::Experimental::RNTupleViewBase< T >::~RNTupleViewBase ( )
default

Member Function Documentation

◆ Bind()

template<typename T >
void ROOT::Experimental::RNTupleViewBase< T >::Bind ( std::shared_ptr< T >  objPtr)
inline

Definition at line 193 of file RNTupleView.hxx.

◆ BindRawPtr()

template<typename T >
void ROOT::Experimental::RNTupleViewBase< T >::BindRawPtr ( T *  rawPtr)
inline

Definition at line 194 of file RNTupleView.hxx.

◆ CreateField()

template<typename T >
static std::unique_ptr< RFieldBase > ROOT::Experimental::RNTupleViewBase< T >::CreateField ( DescriptorId_t  fieldId,
Internal::RPageSource pageSource 
)
inlinestaticprotected

Definition at line 150 of file RNTupleView.hxx.

◆ EmplaceNew()

template<typename T >
void ROOT::Experimental::RNTupleViewBase< T >::EmplaceNew ( )
inline

Definition at line 195 of file RNTupleView.hxx.

◆ GetField()

template<typename T >
const RFieldBase & ROOT::Experimental::RNTupleViewBase< T >::GetField ( ) const
inline

Definition at line 189 of file RNTupleView.hxx.

◆ GetFieldRange()

template<typename T >
RNTupleGlobalRange ROOT::Experimental::RNTupleViewBase< T >::GetFieldRange ( ) const
inline

Definition at line 191 of file RNTupleView.hxx.

◆ GetValue()

template<typename T >
const RFieldBase::RValue & ROOT::Experimental::RNTupleViewBase< T >::GetValue ( ) const
inline

Definition at line 190 of file RNTupleView.hxx.

◆ operator=() [1/2]

template<typename T >
RNTupleViewBase & ROOT::Experimental::RNTupleViewBase< T >::operator= ( const RNTupleViewBase< T > &  other)
delete

◆ operator=() [2/2]

template<typename T >
RNTupleViewBase & ROOT::Experimental::RNTupleViewBase< T >::operator= ( RNTupleViewBase< T > &&  other)
default

Member Data Documentation

◆ fField

template<typename T >
std::unique_ptr<RFieldBase> ROOT::Experimental::RNTupleViewBase< T >::fField
protected

Definition at line 146 of file RNTupleView.hxx.

◆ fFieldRange

template<typename T >
RNTupleGlobalRange ROOT::Experimental::RNTupleViewBase< T >::fFieldRange
protected

Definition at line 147 of file RNTupleView.hxx.

◆ fValue

template<typename T >
RFieldBase::RValue ROOT::Experimental::RNTupleViewBase< T >::fValue
protected

Definition at line 148 of file RNTupleView.hxx.

  • tree/ntuple/v7/inc/ROOT/RNTupleView.hxx