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
 Advances the cursor to the next row of the result set.
virtual const 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 ~CollectionCursor ()

Protected Attributes

const CollectionDescriptionm_description
CollectionRowBuffer m_collectionRowBuffer
 Row buffer containing the Token and Attributes.
ContainerMapm_attrContainers
DbContainerm_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

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 ( )
virtual

Member Function Documentation

◆ close()

virtual void pool::CollectionCursor::close ( )
overridevirtual

Cleanup.

Implements pool::ICollectionCursor.

◆ currentRow()

virtual const CollectionRowBuffer & pool::CollectionCursor::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::CollectionCursor::eventRef ( ) const
overridevirtual

Returns the event reference Token for the current row.

Implements pool::ICollectionCursor.

◆ next()

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

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

Implements pool::ICollectionCursor.

◆ seek()

virtual bool pool::CollectionCursor::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::CollectionCursor::size ( )
overridevirtual

Return the size of the collection.

Implements pool::ICollectionCursor.

Member Data Documentation

◆ m_attrContainers

ContainerMap& pool::CollectionCursor::m_attrContainers
protected

Definition at line 63 of file CollectionCursor.h.

◆ m_collectionRowBuffer

CollectionRowBuffer pool::CollectionCursor::m_collectionRowBuffer
protected

Row buffer containing the Token and Attributes.

Definition at line 61 of file CollectionCursor.h.

◆ m_description

const CollectionDescription& pool::CollectionCursor::m_description
protected

Definition at line 58 of file CollectionCursor.h.

◆ m_idx

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

Definition at line 71 of file CollectionCursor.h.

◆ m_tokenContainer

DbContainer& pool::CollectionCursor::m_tokenContainer
protected

Container for the event reference.

Definition at line 66 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 69 of file CollectionCursor.h.


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