ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
pool::RootCollection::RNTCollectionCursor Class Reference

#include <Rootcollection/RNTCollectionCursor.h>

Inheritance diagram for pool::RootCollection::RNTCollectionCursor:
Collaboration diagram for pool::RootCollection::RNTCollectionCursor:

Public Member Functions

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

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Attributes

const ICollectionDescriptionm_description
 
RNTupleReaderm_RNTReader
 
std::unique_ptr< REntry > m_RNTEntry
 RNtuple row with Field addresses set to collectionRowBuffer attributes. More...
 
pool::CollectionRowBuffer m_collectionRowBuffer
 Row buffer containing Tokens and Attributes selected by query. More...
 
std::vector< std::pair< Token *, std::string > > m_tokens
 "Token rowBuffer" for reading Tokens as strings and converting them later More...
 
int m_idx
 
bool m_dummyRef
 

Detailed Description

An interface used to navigate the result of a query on a collection stored in RNTuple

Definition at line 38 of file RNTCollectionCursor.h.

Constructor & Destructor Documentation

◆ RNTCollectionCursor()

pool::RootCollection::RNTCollectionCursor::RNTCollectionCursor ( const pool::ICollectionDescription description,
const pool::CollectionRowBuffer collectionRowBuffer,
RNTupleReader reader 
)

◆ ~RNTCollectionCursor()

virtual pool::RootCollection::RNTCollectionCursor::~RNTCollectionCursor ( )
virtual

Member Function Documentation

◆ close()

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

Cleanup.

Implements pool::ICollectionCursor.

◆ currentRow()

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

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

Implements pool::ICollectionCursor.

◆ eventRef()

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

Returns the event reference Token for the current row.

Implements pool::ICollectionCursor.

◆ interfaceID()

static const InterfaceID& ICollectionSize::interfaceID ( )
inlinestaticinherited

Definition at line 39 of file ICollectionSize.h.

39 { return IID_ICollectionSize; }

◆ next()

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

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

Implements pool::ICollectionCursor.

◆ seek()

virtual bool pool::RootCollection::RNTCollectionCursor::seek ( long long int  position)
overridevirtual

Seeks the cursor to a given position in the collection.

Implements pool::IPositionSeek.

◆ size()

virtual int pool::RootCollection::RNTCollectionCursor::size ( )
overridevirtual

Return the size of the collection.

Implements ICollectionSize.

Member Data Documentation

◆ m_collectionRowBuffer

pool::CollectionRowBuffer pool::RootCollection::RNTCollectionCursor::m_collectionRowBuffer
protected

Row buffer containing Tokens and Attributes selected by query.

Definition at line 80 of file RNTCollectionCursor.h.

◆ m_description

const ICollectionDescription& pool::RootCollection::RNTCollectionCursor::m_description
protected

Definition at line 72 of file RNTCollectionCursor.h.

◆ m_dummyRef

bool pool::RootCollection::RNTCollectionCursor::m_dummyRef
protected

Definition at line 86 of file RNTCollectionCursor.h.

◆ m_idx

int pool::RootCollection::RNTCollectionCursor::m_idx
protected

Definition at line 85 of file RNTCollectionCursor.h.

◆ m_RNTEntry

std::unique_ptr< REntry > pool::RootCollection::RNTCollectionCursor::m_RNTEntry
protected

RNtuple row with Field addresses set to collectionRowBuffer attributes.

Definition at line 77 of file RNTCollectionCursor.h.

◆ m_RNTReader

RNTupleReader* pool::RootCollection::RNTCollectionCursor::m_RNTReader
protected

Definition at line 74 of file RNTCollectionCursor.h.

◆ m_tokens

std::vector< std::pair< Token*, std::string > > pool::RootCollection::RNTCollectionCursor::m_tokens
protected

"Token rowBuffer" for reading Tokens as strings and converting them later

Definition at line 83 of file RNTCollectionCursor.h.


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