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

An interface used to navigate a collection. More...

#include <RootCollection/TTreeCollectionCursor.h>

Inheritance diagram for pool::RootCollection::TTreeCollectionCursor:
Collaboration diagram for pool::RootCollection::TTreeCollectionCursor:

Public Member Functions

 TTreeCollectionCursor (const pool::CollectionDescription &description, const pool::CollectionRowBuffer &collectionRowBuffer, TTree *tree)
virtual bool next () override
 Advances the cursor to the next row.
virtual const pool::CollectionRowBuffercurrentRow () const override
 Returns the selected Tokens and Attributes for the current row.
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 ~TTreeCollectionCursor ()

Protected Types

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

Protected Attributes

const CollectionDescriptionm_description
pool::CollectionRowBuffer m_collectionRowBuffer
 Row buffer containing Tokens and Attributes.
char m_charBuffer [c_maxLengthOfStrings]
AttrBranchVector_t m_attrBranches
TBranch * m_tokenBranch
std::size_t m_idx
std::size_t m_entries

Static Protected Attributes

static const unsigned int c_maxLengthOfStrings = 5000

Detailed Description

An interface used to navigate a collection.

Definition at line 24 of file TTreeCollectionCursor.h.

Member Typedef Documentation

◆ AttrBranchVector_t

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

Definition at line 63 of file TTreeCollectionCursor.h.

Constructor & Destructor Documentation

◆ TTreeCollectionCursor()

pool::RootCollection::TTreeCollectionCursor::TTreeCollectionCursor ( const pool::CollectionDescription & description,
const pool::CollectionRowBuffer & collectionRowBuffer,
TTree * tree )

◆ ~TTreeCollectionCursor()

virtual pool::RootCollection::TTreeCollectionCursor::~TTreeCollectionCursor ( )
virtual

Member Function Documentation

◆ close()

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

Cleanup.

Implements pool::ICollectionCursor.

◆ currentRow()

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

Returns the selected Tokens and Attributes for the current row.

Implements pool::ICollectionCursor.

◆ eventRef()

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

Returns the event reference Token for the current row.

Implements pool::ICollectionCursor.

◆ next()

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

Advances the cursor to the next row.

Implements pool::ICollectionCursor.

◆ seek()

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

Return the size of the collection.

Implements pool::ICollectionCursor.

Member Data Documentation

◆ c_maxLengthOfStrings

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

Definition at line 60 of file TTreeCollectionCursor.h.

◆ m_attrBranches

AttrBranchVector_t pool::RootCollection::TTreeCollectionCursor::m_attrBranches
protected

Definition at line 64 of file TTreeCollectionCursor.h.

◆ m_charBuffer

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

Definition at line 61 of file TTreeCollectionCursor.h.

◆ m_collectionRowBuffer

pool::CollectionRowBuffer pool::RootCollection::TTreeCollectionCursor::m_collectionRowBuffer
protected

Row buffer containing Tokens and Attributes.

Definition at line 58 of file TTreeCollectionCursor.h.

◆ m_description

const CollectionDescription& pool::RootCollection::TTreeCollectionCursor::m_description
protected

Definition at line 55 of file TTreeCollectionCursor.h.

◆ m_entries

std::size_t pool::RootCollection::TTreeCollectionCursor::m_entries
protected

Definition at line 68 of file TTreeCollectionCursor.h.

◆ m_idx

std::size_t pool::RootCollection::TTreeCollectionCursor::m_idx
protected

Definition at line 67 of file TTreeCollectionCursor.h.

◆ m_tokenBranch

TBranch* pool::RootCollection::TTreeCollectionCursor::m_tokenBranch
protected

Definition at line 65 of file TTreeCollectionCursor.h.


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