ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
pool::PersistencySvc::TokenIterator Class Reference

#include <TokenIterator.h>

Inheritance diagram for pool::PersistencySvc::TokenIterator:
Collaboration diagram for pool::PersistencySvc::TokenIterator:

Public Member Functions

 TokenIterator (FileDescriptor &fileDescriptor, const std::string &containerName, IStorageExplorer &storageExplorer, const std::string &selection)
 Constructor taking as argument a DbSelection object, the file descriptor, the container name and the selection string. More...
 
 ~TokenIterator ()
 Destructor. More...
 
 TokenIterator (const TokenIterator &)=delete
 
TokenIteratoroperator= (const TokenIterator &)=delete
 
Tokennext ()
 Returns the pointer to next token. More...
 
virtual bool seek (long long int position)
 Seek to a given position in the collection. More...
 
virtual int size ()
 Return the size of the collection. More...
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Private Attributes

IStorageExplorerm_storageExplorer
 Reference to the storage explorer. More...
 
DbSelectm_selection
 Selection object. More...
 

Detailed Description

TokenIterator is an implementation of the ITokenIterator interface

Definition at line 28 of file TokenIterator.h.

Constructor & Destructor Documentation

◆ TokenIterator() [1/2]

pool::PersistencySvc::TokenIterator::TokenIterator ( FileDescriptor fileDescriptor,
const std::string &  containerName,
IStorageExplorer storageExplorer,
const std::string &  selection 
)

Constructor taking as argument a DbSelection object, the file descriptor, the container name and the selection string.

◆ ~TokenIterator()

pool::PersistencySvc::TokenIterator::~TokenIterator ( )

Destructor.

◆ TokenIterator() [2/2]

pool::PersistencySvc::TokenIterator::TokenIterator ( const TokenIterator )
delete

Member Function Documentation

◆ interfaceID()

static const InterfaceID& ICollectionSize::interfaceID ( )
inlinestaticinherited

Definition at line 39 of file ICollectionSize.h.

39 { return IID_ICollectionSize; }

◆ next()

Token* pool::PersistencySvc::TokenIterator::next ( )
virtual

Returns the pointer to next token.

Token ownership is passed to the user. if no other token is available in the iteration sequence, 0 is returned.

Implements pool::ITokenIterator.

◆ operator=()

TokenIterator& pool::PersistencySvc::TokenIterator::operator= ( const TokenIterator )
delete

◆ seek()

virtual bool pool::PersistencySvc::TokenIterator::seek ( long long int  position)
virtual

Seek to a given position in the collection.

Parameters
positionThe position to which to seek.
Returns
True if successful, false otherwise.

Implements pool::IPositionSeek.

◆ size()

virtual int pool::PersistencySvc::TokenIterator::size ( )
virtual

Return the size of the collection.

Implements ICollectionSize.

Member Data Documentation

◆ m_selection

DbSelect* pool::PersistencySvc::TokenIterator::m_selection
private

Selection object.

Definition at line 69 of file TokenIterator.h.

◆ m_storageExplorer

IStorageExplorer& pool::PersistencySvc::TokenIterator::m_storageExplorer
private

Reference to the storage explorer.

Definition at line 67 of file TokenIterator.h.


The documentation for this class was generated from the following file: