Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection Struct Reference

Leaf count arrays require special treatment.

They are translated into untyped collections of untyped records. This class does the bookkeeping of the sub-schema for these collections.

Definition at line 173 of file RNTupleImporter.hxx.

Public Member Functions

 RImportLeafCountCollection ()=default
 
 RImportLeafCountCollection (const RImportLeafCountCollection &other)=delete
 
 RImportLeafCountCollection (RImportLeafCountCollection &&other)=default
 
RImportLeafCountCollectionoperator= (const RImportLeafCountCollection &other)=delete
 
RImportLeafCountCollectionoperator= (RImportLeafCountCollection &&other)=default
 

Public Attributes

std::unique_ptr< Int_tfCountVal
 The number of elements for the collection for a particular event.
 
std::vector< unsigned char > fFieldBuffer
 The collection field memory representation. Bound to the entry.
 
std::string fFieldName
 name of the untyped collection, e.g.
 
std::vector< size_t > fLeafBranchIndexes
 Points to the correspondings leaf branches in fImportBranches.
 
std::vector< std::unique_ptr< RFieldBase > > fLeafFields
 The leafs of the array as we encounter them traversing the TTree schema.
 
Int_t fMaxLength = 0
 Stores count leaf GetMaximum() to create large enough buffers for the array leafs.
 
RRecordFieldfRecordField = nullptr
 Points to the item field of the untyped collection field in the model.
 

Constructor & Destructor Documentation

◆ RImportLeafCountCollection() [1/3]

ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::RImportLeafCountCollection ( )
default

◆ RImportLeafCountCollection() [2/3]

ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::RImportLeafCountCollection ( const RImportLeafCountCollection other)
delete

◆ RImportLeafCountCollection() [3/3]

ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::RImportLeafCountCollection ( RImportLeafCountCollection &&  other)
default

Member Function Documentation

◆ operator=() [1/2]

RImportLeafCountCollection & ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::operator= ( const RImportLeafCountCollection other)
delete

◆ operator=() [2/2]

RImportLeafCountCollection & ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::operator= ( RImportLeafCountCollection &&  other)
default

Member Data Documentation

◆ fCountVal

std::unique_ptr<Int_t> ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fCountVal

The number of elements for the collection for a particular event.

Used as a destination for SetBranchAddress() of the count leaf

Definition at line 185 of file RNTupleImporter.hxx.

◆ fFieldBuffer

std::vector<unsigned char> ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fFieldBuffer

The collection field memory representation. Bound to the entry.

Definition at line 192 of file RNTupleImporter.hxx.

◆ fFieldName

std::string ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fFieldName

name of the untyped collection, e.g.

_collection0, _collection1, etc.

Definition at line 179 of file RNTupleImporter.hxx.

◆ fLeafBranchIndexes

std::vector<size_t> ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fLeafBranchIndexes

Points to the correspondings leaf branches in fImportBranches.

Definition at line 190 of file RNTupleImporter.hxx.

◆ fLeafFields

std::vector<std::unique_ptr<RFieldBase> > ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fLeafFields

The leafs of the array as we encounter them traversing the TTree schema.

Eventually, the fields are moved as leaves to an untyped collection of untyped records that in turn is attached to the RNTuple model.

Definition at line 189 of file RNTupleImporter.hxx.

◆ fMaxLength

Int_t ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fMaxLength = 0

Stores count leaf GetMaximum() to create large enough buffers for the array leafs.

Uses Int_t because that is the return type if TLeaf::GetMaximum().

Definition at line 182 of file RNTupleImporter.hxx.

◆ fRecordField

RRecordField* ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection::fRecordField = nullptr

Points to the item field of the untyped collection field in the model.

Definition at line 191 of file RNTupleImporter.hxx.

Collaboration diagram for ROOT::Experimental::RNTupleImporter::RImportLeafCountCollection:
[legend]

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