5#ifndef PERSISTENCYSVC_TOKENITERATOR_H
6#define PERSISTENCYSVC_TOKENITERATOR_H
32 const std::string& containerName );
49 virtual std::size_t
size();
56 virtual bool seek(std::size_t position);
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.
virtual std::size_t size()
Return the size of the collection.
~TokenIterator()
Destructor.
DbContainer * m_container
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