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

#include <RootCollectionCursor.h>

Inheritance diagram for pool::RootCollection::RootCollectionCursor:
Collaboration diagram for pool::RootCollection::RootCollectionCursor:

Public Member Functions

 RootCollectionCursor (const pool::ICollectionDescription &description, const pool::CollectionRowBuffer &collectionRowBuffer, TTree *tree, const TEventList *evl)
 
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 std::size_t size () override
 Return the size of the collection. More...
 
virtual bool seek (std::size_t position) override
 Seeks the cursor to a given position in 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 ~RootCollectionCursor ()
 

Protected Types

typedef std::vector< std::pair< TBranch *, std::string * > > AttrBranchVector_t
 
typedef std::vector< std::pair< TBranch *, Token * > > TokenBranchVector_t
 

Protected Attributes

const ICollectionDescriptionm_description
 
pool::CollectionRowBuffer m_collectionRowBuffer
 Row buffer containing Tokens and Attributes selected by query. More...
 
const TEventList * m_eventList
 
char m_charBuffer [c_maxLengthOfStrings]
 
AttrBranchVector_t m_attrBranches
 
TokenBranchVector_t m_tokenBranches
 
std::size_t m_idx
 
std::size_t m_entries
 
bool m_dummyRef
 

Static Protected Attributes

static const unsigned int c_maxLengthOfStrings = 5000
 

Detailed Description

Definition at line 26 of file RootCollectionCursor.h.

Member Typedef Documentation

◆ AttrBranchVector_t

typedef std::vector< std::pair<TBranch*, std::string*> > pool::RootCollection::RootCollectionCursor::AttrBranchVector_t
protected

Definition at line 70 of file RootCollectionCursor.h.

◆ TokenBranchVector_t

typedef std::vector< std::pair<TBranch*, Token*> > pool::RootCollection::RootCollectionCursor::TokenBranchVector_t
protected

Definition at line 71 of file RootCollectionCursor.h.

Constructor & Destructor Documentation

◆ RootCollectionCursor()

pool::RootCollection::RootCollectionCursor::RootCollectionCursor ( const pool::ICollectionDescription description,
const pool::CollectionRowBuffer collectionRowBuffer,
TTree *  tree,
const TEventList *  evl 
)

◆ ~RootCollectionCursor()

virtual pool::RootCollection::RootCollectionCursor::~RootCollectionCursor ( )
virtual

Member Function Documentation

◆ close()

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

Cleanup.

Implements pool::ICollectionCursor.

◆ currentRow()

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

Returns the event reference Token for the current row.

Implements pool::ICollectionCursor.

◆ next()

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

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

Implements pool::ICollectionCursor.

◆ seek()

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

Return the size of the collection.

Implements pool::ICollectionCursor.

Member Data Documentation

◆ c_maxLengthOfStrings

const unsigned int pool::RootCollection::RootCollectionCursor::c_maxLengthOfStrings = 5000
staticprotected

Definition at line 59 of file RootCollectionCursor.h.

◆ m_attrBranches

AttrBranchVector_t pool::RootCollection::RootCollectionCursor::m_attrBranches
protected

Definition at line 73 of file RootCollectionCursor.h.

◆ m_charBuffer

char pool::RootCollection::RootCollectionCursor::m_charBuffer[c_maxLengthOfStrings]
protected

Definition at line 68 of file RootCollectionCursor.h.

◆ m_collectionRowBuffer

pool::CollectionRowBuffer pool::RootCollection::RootCollectionCursor::m_collectionRowBuffer
protected

Row buffer containing Tokens and Attributes selected by query.

Definition at line 64 of file RootCollectionCursor.h.

◆ m_description

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

Definition at line 61 of file RootCollectionCursor.h.

◆ m_dummyRef

bool pool::RootCollection::RootCollectionCursor::m_dummyRef
protected

Definition at line 78 of file RootCollectionCursor.h.

◆ m_entries

std::size_t pool::RootCollection::RootCollectionCursor::m_entries
protected

Definition at line 77 of file RootCollectionCursor.h.

◆ m_eventList

const TEventList* pool::RootCollection::RootCollectionCursor::m_eventList
protected

Definition at line 66 of file RootCollectionCursor.h.

◆ m_idx

std::size_t pool::RootCollection::RootCollectionCursor::m_idx
protected

Definition at line 76 of file RootCollectionCursor.h.

◆ m_tokenBranches

TokenBranchVector_t pool::RootCollection::RootCollectionCursor::m_tokenBranches
protected

Definition at line 74 of file RootCollectionCursor.h.


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