ATLAS Offline Software
Loading...
Searching...
No Matches
ITokenIterator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INCLUDE_PERSISTENCYSVC_ITOKENITERATOR_H
6#define INCLUDE_PERSISTENCYSVC_ITOKENITERATOR_H
7
8#include <cstddef>
9
10// forward declarations
11class Token;
12
13namespace pool {
14
20
22 public:
24 virtual ~ITokenIterator() {}
25
28 virtual std::size_t size () = 0;
29
35 virtual bool seek (std::size_t position) = 0;
36
42 virtual Token* next() = 0;
43 };
44
45}
46
47#endif
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
ITokenIterator is the interface class for iterators of tokens.
virtual std::size_t size()=0
Returns the size of the collection.
virtual Token * next()=0
Returns the pointer to next token.
virtual ~ITokenIterator()
Empty destructor.
virtual bool seek(std::size_t position)=0
Seek to a given position in the collection.
pool namespace
Definition libname.h:15