ATLAS Offline Software
Loading...
Searching...
No Matches
pool::RootCollection::RNTupleCollectionCursor Class Reference

An interface used to navigate stored in RNTuple. More...

#include <Rootcollection/RNTupleCollectionCursor.h>

Inheritance diagram for pool::RootCollection::RNTupleCollectionCursor:
Collaboration diagram for pool::RootCollection::RNTupleCollectionCursor:

Public Member Functions

 RNTupleCollectionCursor (const pool::CollectionDescription &description, const pool::CollectionRowBuffer &collectionRowBuffer, ROOT::RNTupleReader *reader)
virtual bool next () override
 Advances the cursor to the next row of the result set.
virtual const pool::CollectionRowBuffercurrentRow () const override
 Returns the selected Tokens and Attributes for the current row of the result set.
virtual std::size_t size () override
 Return the size of the collection.
virtual bool seek (std::size_t position) override
 Seeks the cursor to a given position in the collection.
virtual const TokeneventRef () const override
 Returns the event reference Token for the current row.
virtual void close () override
 Cleanup.
virtual ~RNTupleCollectionCursor ()

Protected Attributes

const CollectionDescriptionm_description
ROOT::RNTupleReader * m_RNTReader
std::unique_ptr< ROOT::REntry > m_RNTEntry
 RNtuple row with Field addresses set to collectionRowBuffer attributes.
pool::CollectionRowBuffer m_collectionRowBuffer
 Row buffer containing Tokens and Attributes.
std::string m_tokenStr
 Temporary storage for Event Reference in string format as it is in RNTuple.
std::size_t m_idx

Detailed Description

An interface used to navigate stored in RNTuple.

Definition at line 32 of file RNTupleCollectionCursor.h.

Constructor & Destructor Documentation

◆ RNTupleCollectionCursor()

pool::RootCollection::RNTupleCollectionCursor::RNTupleCollectionCursor ( const pool::CollectionDescription & description,
const pool::CollectionRowBuffer & collectionRowBuffer,
ROOT::RNTupleReader * reader )

◆ ~RNTupleCollectionCursor()

virtual pool::RootCollection::RNTupleCollectionCursor::~RNTupleCollectionCursor ( )
virtual

Member Function Documentation

◆ close()

virtual void pool::RootCollection::RNTupleCollectionCursor::close ( )
overridevirtual

Cleanup.

Implements pool::ICollectionCursor.

◆ currentRow()

virtual const pool::CollectionRowBuffer & pool::RootCollection::RNTupleCollectionCursor::currentRow ( ) const
overridevirtual

Returns the selected Tokens and Attributes for the current row of the result set.

Implements pool::ICollectionCursor.

◆ eventRef()

virtual const Token & pool::RootCollection::RNTupleCollectionCursor::eventRef ( ) const
overridevirtual

Returns the event reference Token for the current row.

Implements pool::ICollectionCursor.

◆ next()

virtual bool pool::RootCollection::RNTupleCollectionCursor::next ( )
overridevirtual

Advances the cursor to the next row of the result set.

Implements pool::ICollectionCursor.

◆ seek()

virtual bool pool::RootCollection::RNTupleCollectionCursor::seek ( std::size_t position)
overridevirtual

Seeks the cursor to a given position in the collection.

Implements pool::ICollectionCursor.

◆ size()

virtual std::size_t pool::RootCollection::RNTupleCollectionCursor::size ( )
overridevirtual

Return the size of the collection.

Implements pool::ICollectionCursor.

Member Data Documentation

◆ m_collectionRowBuffer

pool::CollectionRowBuffer pool::RootCollection::RNTupleCollectionCursor::m_collectionRowBuffer
protected

Row buffer containing Tokens and Attributes.

Definition at line 71 of file RNTupleCollectionCursor.h.

◆ m_description

const CollectionDescription& pool::RootCollection::RNTupleCollectionCursor::m_description
protected

Definition at line 63 of file RNTupleCollectionCursor.h.

◆ m_idx

std::size_t pool::RootCollection::RNTupleCollectionCursor::m_idx
protected

Definition at line 76 of file RNTupleCollectionCursor.h.

◆ m_RNTEntry

std::unique_ptr< ROOT::REntry > pool::RootCollection::RNTupleCollectionCursor::m_RNTEntry
protected

RNtuple row with Field addresses set to collectionRowBuffer attributes.

Definition at line 68 of file RNTupleCollectionCursor.h.

◆ m_RNTReader

ROOT::RNTupleReader* pool::RootCollection::RNTupleCollectionCursor::m_RNTReader
protected

Definition at line 65 of file RNTupleCollectionCursor.h.

◆ m_tokenStr

std::string pool::RootCollection::RNTupleCollectionCursor::m_tokenStr
protected

Temporary storage for Event Reference in string format as it is in RNTuple.

Definition at line 74 of file RNTupleCollectionCursor.h.


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