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

Reader object for Collections. More...

#include <CollectionCursor.h>

Inheritance diagram for pool::CollectionCursor:
Collaboration diagram for pool::CollectionCursor:

Public Member Functions

 CollectionCursor (const CollectionDescription &description, const CollectionRowBuffer &collectionRowBuffer, ContainerMap &attrContainers)
virtual bool next () override final
 Advances the cursor to the next row of the result set.
virtual const CollectionRowBuffer & currentRow () const override final
 Returns the selected Tokens and Attributes for the current row of the result set.
virtual std::size_t size () override final
 Return the size of the collection.
virtual bool seek (std::size_t position) override final
 Seeks the cursor to a given position in the collection.
virtual const Token & eventRef () const override final
 Returns the event reference Token for the current row.
virtual ~CollectionCursor ()=default

Protected Attributes

const CollectionDescription & m_description
CollectionRowBuffer m_collectionRowBuffer
 Row buffer containing the Token and Attributes.
ContainerMap & m_attrContainers
DbContainer & m_tokenContainer
 Container for the event reference.
std::string m_tokenStr
 Temporary storage for Event Reference in string format as it is in RNTuple.
std::size_t m_idx
std::size_t m_size

Detailed Description

Reader object for Collections.

Definition at line 28 of file CollectionCursor.h.

Constructor & Destructor Documentation

◆ CollectionCursor()

pool::CollectionCursor::CollectionCursor ( const CollectionDescription & description,
const CollectionRowBuffer & collectionRowBuffer,
ContainerMap & attrContainers )

◆ ~CollectionCursor()

virtual pool::CollectionCursor::~CollectionCursor ( )
virtualdefault

Member Function Documentation

◆ currentRow()

virtual const CollectionRowBuffer & pool::CollectionCursor::currentRow ( ) const
finaloverridevirtual

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

Implements pool::ICollectionCursor.

◆ eventRef()

virtual const Token & pool::CollectionCursor::eventRef ( ) const
finaloverridevirtual

Returns the event reference Token for the current row.

Implements pool::ICollectionCursor.

◆ next()

virtual bool pool::CollectionCursor::next ( )
finaloverridevirtual

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

Implements pool::ICollectionCursor.

◆ seek()

virtual bool pool::CollectionCursor::seek ( std::size_t position)
finaloverridevirtual

Seeks the cursor to a given position in the collection.

Implements pool::ICollectionCursor.

◆ size()

virtual std::size_t pool::CollectionCursor::size ( )
inlinefinaloverridevirtual

Return the size of the collection.

Implements pool::ICollectionCursor.

Definition at line 44 of file CollectionCursor.h.

44{ return m_size; }

Member Data Documentation

◆ m_attrContainers

ContainerMap& pool::CollectionCursor::m_attrContainers
protected

Definition at line 60 of file CollectionCursor.h.

◆ m_collectionRowBuffer

CollectionRowBuffer pool::CollectionCursor::m_collectionRowBuffer
protected

Row buffer containing the Token and Attributes.

Definition at line 58 of file CollectionCursor.h.

◆ m_description

const CollectionDescription& pool::CollectionCursor::m_description
protected

Definition at line 55 of file CollectionCursor.h.

◆ m_idx

std::size_t pool::CollectionCursor::m_idx
protected

Definition at line 68 of file CollectionCursor.h.

◆ m_size

std::size_t pool::CollectionCursor::m_size
protected

Definition at line 70 of file CollectionCursor.h.

◆ m_tokenContainer

DbContainer& pool::CollectionCursor::m_tokenContainer
protected

Container for the event reference.

Definition at line 63 of file CollectionCursor.h.

◆ m_tokenStr

std::string pool::CollectionCursor::m_tokenStr
protected

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

Definition at line 66 of file CollectionCursor.h.


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