5#ifndef PERSISTENCYSVC_TOKENITERATOR_H
6#define PERSISTENCYSVC_TOKENITERATOR_H
44 virtual
std::
size_t size() override final;
51 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.
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.