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
10#include "CollectionRowBuffer.h"
12
13#include <cstddef>
14#include <map>
15#include <string>
16
17
18namespace pool {
19
20 using ContainerMap = std::map< std::string, DbContainer >;
21
28 {
29 public:
30
32 const CollectionRowBuffer& collectionRowBuffer,
33 ContainerMap& attrContainers );
34
36 bool next();
37
39 const CollectionRowBuffer& currentRow() const;
40
42 std::size_t size();
43
45 bool seek(std::size_t position);
46
48 const Token& eventRef() const;
49
50 private:
53
55
58
60 std::string m_tokenStr;
61
62 std::size_t m_idx;
63 };
64
65}
66
67#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:22
ContainerMap & m_attrContainers
bool next()
Advances the cursor to the next row of the result set.
CollectionRowBuffer m_collectionRowBuffer
Row buffer containing the Token and Attributes.
DbContainer & m_tokenContainer
Container for the event reference.
const CollectionRowBuffer & currentRow() const
Returns the selected Tokens and Attributes for the current row of the result set.
CollectionCursor(const CollectionRowBuffer &collectionRowBuffer, ContainerMap &attrContainers)
std::size_t size()
Return the size of the collection.
bool seek(std::size_t position)
Seeks the cursor to a given position in the collection.
const Token & eventRef() const
Returns the event reference Token for the current row.
std::string m_tokenStr
Temporary storage for Event Reference in string format as it is in RNTuple.
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
Framework include files.
Definition libname.h:15
std::map< std::string, DbContainer > ContainerMap