ATLAS Offline Software
Loading...
Searching...
No Matches
ImplicitCollectionIterator.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 COLLECTIONSVC_COLLECTIONITERATOR_H
6#define COLLECTIONSVC_COLLECTIONITERATOR_H
7
10
12#include <memory>
13
14class Token;
15
16namespace coral { class AttributeList; }
17
18namespace pool {
19
20 // forward declarations
21 class IContainer;
22 class ITokenIterator;
24
32 {
33 public:
37
38 // ------------------- Cursor interface
39
43 virtual bool next();
44
46 virtual Token* token() const;
47 virtual const Token& eventRef() const { return *token(); }
48
49 virtual const CollectionRowBuffer& currentRow() const;
50
51 // ------------------- Seek interface
57 virtual bool seek(std::size_t position);
58
62 virtual std::size_t size();
63
64
65 //------------------------------------------
66
69
70
71 // ------------------- Unimplemented methods
72
73 virtual void close() {}
74
75
76 protected:
78 std::unique_ptr<ITokenIterator> m_tokenIterator;
80
82 };
83
84}
85
86#endif
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
A class that acts as a buffer to be filled with the event reference and associated metadata values of...
An interface used to navigate the result of a query on a collection.
An interface used to define the properties of a collection to be constructed and to retrieve these pr...
IContainer is the base class for container objects.
Definition IContainer.h:23
ITokenIterator is the interface class for iterators of tokens.
virtual Token * token() const
Returns the token of the current position.
virtual const CollectionRowBuffer & currentRow() const
Returns the selected Tokens and Attributes for the current row of the query result set.
virtual ~ImplicitCollectionIterator()
Destructor.
virtual const Token & eventRef() const
Returns the event reference Token for the current row.
std::unique_ptr< ITokenIterator > m_tokenIterator
ImplicitCollectionIterator(IContainer &container, const pool::ICollectionDescription &description)
Constructor.
virtual bool next()
Retrieves the next token in the collection.
virtual bool seek(std::size_t position)
Seek to a given position in the collection.
virtual std::size_t size()
Return the size of the collection.
std::string description
glabal timer - how long have I taken so far?
Definition hcg.cxx:91
pool namespace
Definition libname.h:15