5#ifndef PERSISTENCYSVC_TOKENITERATOR_H
6#define PERSISTENCYSVC_TOKENITERATOR_H
46 virtual
std::
size_t size() override final;
53 virtual
bool seek(
std::
size_t position) override final;
This class provides a token that identifies in a unique way objects on the persistent storage.
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
ITokenIterator is the interface class for iterators of tokens.
DbContainer * m_container
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