ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
CollectionSvc
src
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
8
#include "
PersistentDataModel/Token.h
"
9
10
#include "
CollectionSvc/CollectionRowBuffer.h
"
11
#include "
CollectionSvc/CollectionDescription.h
"
12
#include "
CollectionSvc/ICollectionCursor.h
"
13
#include "
StorageSvc/DbContainer.h
"
14
15
#include <memory>
16
#include <map>
17
18
19
namespace
pool
{
20
21
using
ContainerMap
= std::map< std::string, DbContainer >;
22
28
class
CollectionCursor
:
public
ICollectionCursor
29
{
30
public
:
31
32
CollectionCursor
(
33
const
CollectionDescription
&
description
,
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
55
virtual
~CollectionCursor
();
56
57
protected
:
58
const
CollectionDescription
&
m_description
;
59
61
CollectionRowBuffer
m_collectionRowBuffer
;
62
63
ContainerMap
&
m_attrContainers
;
64
66
DbContainer
&
m_tokenContainer
;
67
69
std::string
m_tokenStr
;
70
71
std::size_t
m_idx
;
72
};
73
74
}
75
76
#endif
CollectionDescription.h
CollectionRowBuffer.h
DbContainer.h
ICollectionCursor.h
Token.h
This file contains the class definition for the Token class (migrated from POOL).
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
pool::CollectionCursor::m_idx
std::size_t m_idx
Definition
CollectionCursor.h:71
pool::CollectionCursor::m_description
const CollectionDescription & m_description
Definition
CollectionCursor.h:58
pool::CollectionCursor::CollectionCursor
CollectionCursor(const CollectionDescription &description, const CollectionRowBuffer &collectionRowBuffer, ContainerMap &attrContainers)
pool::CollectionCursor::m_attrContainers
ContainerMap & m_attrContainers
Definition
CollectionCursor.h:63
pool::CollectionCursor::eventRef
virtual const Token & eventRef() const override
Returns the event reference Token for the current row.
pool::CollectionCursor::~CollectionCursor
virtual ~CollectionCursor()
pool::CollectionCursor::m_collectionRowBuffer
CollectionRowBuffer m_collectionRowBuffer
Row buffer containing the Token and Attributes.
Definition
CollectionCursor.h:61
pool::CollectionCursor::m_tokenContainer
DbContainer & m_tokenContainer
Container for the event reference.
Definition
CollectionCursor.h:66
pool::CollectionCursor::next
virtual bool next() override
Advances the cursor to the next row of the result set.
pool::CollectionCursor::currentRow
virtual const CollectionRowBuffer & currentRow() const override
Returns the selected Tokens and Attributes for the current row of the result set.
pool::CollectionCursor::size
virtual std::size_t size() override
Return the size of the collection.
pool::CollectionCursor::close
virtual void close() override
Cleanup.
pool::CollectionCursor::seek
virtual bool seek(std::size_t position) override
Seeks the cursor to a given position in the collection.
pool::CollectionCursor::m_tokenStr
std::string m_tokenStr
Temporary storage for Event Reference in string format as it is in RNTuple.
Definition
CollectionCursor.h:69
pool::CollectionDescription
An implementation used to define the properties of a collection to be constructed and to retrieve the...
Definition
CollectionDescription.h:26
pool::CollectionRowBuffer
A class representing a row of a collection.
Definition
CollectionRowBuffer.h:25
pool::DbContainer
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
Definition
DbContainer.h:48
pool::ICollectionCursor
An interface used to navigate the result of a query on a collection.
Definition
ICollectionCursor.h:22
description
std::string description
glabal timer - how long have I taken so far?
Definition
hcg.cxx:93
pool
Framework include files.
Definition
libname.h:15
pool::ContainerMap
std::map< std::string, DbContainer > ContainerMap
Definition
CollectionCursor.h:21
Generated on
for ATLAS Offline Software by
1.17.0