ATLAS Offline Software
Loading...
Searching...
No Matches
CollectionCursor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COLLECTIONCURSOR_H
6#define COLLECTIONCURSOR_H
7
9
14
15#include <memory>
16#include <map>
17
18
19namespace pool {
20
21 using ContainerMap = std::map< std::string, DbContainer >;
22
29 {
30 public:
31
34 const CollectionRowBuffer& collectionRowBuffer,
35 ContainerMap& attrContainers );
36
38 virtual bool next() override;
39
41 virtual const CollectionRowBuffer& currentRow() const override;
42
44 virtual std::size_t size() override;
45
47 virtual bool seek(std::size_t position) override;
48
50 virtual const Token& eventRef() const override;
51
53 virtual void close() override;
54
56
57 protected:
59
62
64
67
69 std::string m_tokenStr;
70
71 std::size_t m_idx;
72 };
73
74}
75
76#endif
This file contains the class definition for the Token class (migrated from POOL).
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
const CollectionDescription & m_description
CollectionCursor(const CollectionDescription &description, const CollectionRowBuffer &collectionRowBuffer, ContainerMap &attrContainers)
ContainerMap & m_attrContainers
virtual const Token & eventRef() const override
Returns the event reference Token for the current row.
CollectionRowBuffer m_collectionRowBuffer
Row buffer containing the Token and Attributes.
DbContainer & m_tokenContainer
Container for the event reference.
virtual bool next() override
Advances the cursor to the next row of the result set.
virtual const CollectionRowBuffer & currentRow() 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 void close() override
Cleanup.
virtual bool seek(std::size_t position) override
Seeks the cursor to a given position in the collection.
std::string m_tokenStr
Temporary storage for Event Reference in string format as it is in RNTuple.
An implementation used to define the properties of a collection to be constructed and to retrieve the...
A class representing a row of a collection.
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
Definition DbContainer.h:48
An interface used to navigate the result of a query on a collection.
std::string description
glabal timer - how long have I taken so far?
Definition hcg.cxx:93
Framework include files.
Definition libname.h:15
std::map< std::string, DbContainer > ContainerMap