ATLAS Offline Software
Loading...
Searching...
No Matches
TokenIterator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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:
31 TokenIterator( FileDescriptor& fileDescriptor,
32 const std::string& containerName );
35
36 TokenIterator( const TokenIterator& ) = delete;
38
45
49 virtual std::size_t size();
50
56 virtual bool seek(std::size_t position);
57
58 private:
61 };
62 }
63}
64
65#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:49
ITokenIterator is the interface class for iterators of tokens.
virtual std::size_t size()
Return the size of the collection.
TokenIterator(const TokenIterator &)=delete
Token * next()
Returns the pointer to next token.
TokenIterator(FileDescriptor &fileDescriptor, const std::string &containerName)
Constructor taking as argument the file descriptor, the container name.
virtual bool seek(std::size_t position)
Seek to a given position in the collection.
TokenIterator & operator=(const TokenIterator &)=delete
pool namespace
Definition libname.h:15