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 POOLSVC_TOKENITERATOR_H
6#define POOLSVC_TOKENITERATOR_H
7
8#include <string>
9
10class FileDescriptor;
11class DbContainer;
12class Token;
13
16
17class TokenIterator final {
18public:
20 TokenIterator(FileDescriptor& fileDescriptor, const std::string& containerName);
21
23
24 TokenIterator( const TokenIterator& ) = delete;
26
31 Token* next();
32
38 bool seek(std::size_t position);
39
40private:
43};
44
45#endif
Description: This class is a handle managing access and lifetime for the Container implementation obj...
Definition DbContainer.h:31
Description:
TokenIterator(FileDescriptor &fileDescriptor, const std::string &containerName)
Constructor taking as argument the file descriptor, the container name.
Token * m_refToken
TokenIterator & operator=(const TokenIterator &)=delete
TokenIterator(const TokenIterator &)=delete
Token * next()
Advances tne iterator and returns a pointer to next token.
DbContainer * m_container
bool seek(std::size_t position)
Seek to a given position in the collection.
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:22