ATLAS Offline Software
Loading...
Searching...
No Matches
ImplicitCollectionIterator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COLLECTIONSVC_COLLECTIONITERATOR_H
6#define COLLECTIONSVC_COLLECTIONITERATOR_H
7
10
12
13class Token;
14
15namespace coral { class AttributeList; }
16
17namespace pool {
18
19 // forward declarations
20 class IContainer;
21 class ITokenIterator;
23
31 {
32 public:
36
37 // ------------------- Cursor interface
38
42 virtual bool next();
43
45 virtual Token* token() const;
46 virtual const Token& eventRef() const { return *token(); }
47
48 virtual const CollectionRowBuffer& currentRow() const;
49
50 // ------------------- Seek interface
56 virtual bool seek(std::size_t position);
57
61 virtual std::size_t size();
62
63
64 //------------------------------------------
65
68
69
70 // ------------------- Unimplemented methods
71
72 virtual void close() {}
73
74
75 protected:
79
81 };
82
83}
84
85#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.
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