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
23
24 class TokenIterator : virtual public ITokenIterator
25 {
26 public:
28 TokenIterator(FileDescriptor& fileDescriptor, const std::string& containerName);
29
31
32 TokenIterator( const TokenIterator& ) = delete;
34
39 virtual Token* next() override final;
40
44 virtual std::size_t size() override final;
45
51 virtual bool seek(std::size_t position) override final;
52
53 private:
56 };
57 }
58
59#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.
TokenIterator(const TokenIterator &)=delete
virtual bool seek(std::size_t position) override final
Seek to a given position in the collection.
TokenIterator & operator=(const TokenIterator &)=delete
virtual Token * next() override final
Advances tne iterator and returns a pointer to next token.
virtual std::size_t size() override final
Return the size of the collection.
DbContainer * m_container
TokenIterator(FileDescriptor &fileDescriptor, const std::string &containerName)
Constructor taking as argument the file descriptor, the container name.
Framework include files.
Definition libname.h:15
STL namespace.
#define private