ATLAS Offline Software
Loading...
Searching...
No Matches
TokenIterator.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 PERSISTENCYSVC_TOKENITERATOR_H
6#define PERSISTENCYSVC_TOKENITERATOR_H
7
9
10#include <string>
11
12namespace pool {
13
14 // forward declarations
15 class FileDescriptor;
16 class DbContainer;
17
18 namespace PersistencySvc {
19
25
26 class TokenIterator : virtual public ITokenIterator
27 {
28 public:
30 TokenIterator(FileDescriptor& fileDescriptor, const std::string& containerName);
31
33
34 TokenIterator( const TokenIterator& ) = delete;
36
41 virtual Token* next() override final;
42
46 virtual std::size_t size() override final;
47
53 virtual bool seek(std::size_t position) override final;
54
55 private:
58 };
59 }
60 }
61
62#endif
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
Definition DbContainer.h:48
ITokenIterator is the interface class for iterators of tokens.
virtual Token * next() override final
Advances tne iterator and returns a pointer to next token.
virtual bool seek(std::size_t position) override final
Seek to a given position in the collection.
virtual std::size_t size() override final
Return the size of the collection.
TokenIterator(const TokenIterator &)=delete
TokenIterator(FileDescriptor &fileDescriptor, const std::string &containerName)
Constructor taking as argument the file descriptor, the container name.
TokenIterator & operator=(const TokenIterator &)=delete
Framework include files.
Definition libname.h:15
STL namespace.
#define private