ATLAS Offline Software
Public Member Functions | Static 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 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 ~RootCollectionCursor ()
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

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
 
int m_idx
 
Long64_t m_entries
 
bool m_dummyRef
 

Static Protected Attributes

static const unsigned int c_maxLengthOfStrings = 5000
 

Detailed Description

Definition at line 28 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 75 of file RootCollectionCursor.h.

◆ TokenBranchVector_t

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

Definition at line 76 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.

◆ interfaceID()

static const InterfaceID& ICollectionSize::interfaceID ( )
inlinestaticinherited

Definition at line 39 of file ICollectionSize.h.

39 { return IID_ICollectionSize; }

◆ 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 ( long long int  position)
overridevirtual

Seeks the cursor to a given position in the collection.

Implements pool::IPositionSeek.

◆ size()

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

Return the size of the collection.

Implements ICollectionSize.

Member Data Documentation

◆ c_maxLengthOfStrings

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

Definition at line 63 of file RootCollectionCursor.h.

◆ m_attrBranches

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

Definition at line 78 of file RootCollectionCursor.h.

◆ m_charBuffer

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

Definition at line 73 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 68 of file RootCollectionCursor.h.

◆ m_description

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

Definition at line 65 of file RootCollectionCursor.h.

◆ m_dummyRef

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

Definition at line 83 of file RootCollectionCursor.h.

◆ m_entries

Long64_t pool::RootCollection::RootCollectionCursor::m_entries
protected

Definition at line 82 of file RootCollectionCursor.h.

◆ m_eventList

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

Definition at line 70 of file RootCollectionCursor.h.

◆ m_idx

int pool::RootCollection::RootCollectionCursor::m_idx
protected

Definition at line 81 of file RootCollectionCursor.h.

◆ m_tokenBranches

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

Definition at line 79 of file RootCollectionCursor.h.


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