GlobalObjects
Loading...
Searching...
No Matches
glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem Class Reference

Objects of this type are managed in the m_pAllSetObjectStrIndexIteratorMap to ensure that an AllSet with index can be reopened in method TableReaderInterface::setTransactionIndexPool(TransactionIndexPool*). More...

Public Member Functions

 AllSetObjectStrIndexIteratorItem (IndexPool::ObjectStrIndexIterator *pObjectStrIndexIterator, const std::string &m_sIndexName)
 
 ~AllSetObjectStrIndexIteratorItem ()
 
std::size_t getObjectStrIndexSize () const
 
bool inObjectStrIndex (const ObjID &rObjID)
 
int setCurrentObject (const ObjID &rObjID)
 
int setPosition (std::size_t nPosition)
 

Public Attributes

IndexPool::ObjectStrIndexIteratorm_pObjectStrIndexIterator
 
std::string m_sIndexName
 

Private Member Functions

 AllSetObjectStrIndexIteratorItem ()
 
 AllSetObjectStrIndexIteratorItem (const AllSetObjectStrIndexIteratorItem &)
 
AllSetObjectStrIndexIteratorItemoperator= (const AllSetObjectStrIndexIteratorItem &)
 

Detailed Description

Objects of this type are managed in the m_pAllSetObjectStrIndexIteratorMap to ensure that an AllSet with index can be reopened in method TableReaderInterface::setTransactionIndexPool(TransactionIndexPool*).

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ AllSetObjectStrIndexIteratorItem() [1/3]

glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::AllSetObjectStrIndexIteratorItem ( )
private

The standard constructor is not available.

◆ AllSetObjectStrIndexIteratorItem() [2/3]

glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::AllSetObjectStrIndexIteratorItem ( const AllSetObjectStrIndexIteratorItem & )
private

The copy constructor is not available.

◆ AllSetObjectStrIndexIteratorItem() [3/3]

glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::AllSetObjectStrIndexIteratorItem ( IndexPool::ObjectStrIndexIterator * pObjectStrIndexIterator,
const std::string & m_sIndexName )

Constructor with parameter passing.

Parameters
[in]pObjectStrIndexIteratorThe iterator on a string index.
[in]m_sIndexNameThe index name.
Attention
. The passed IndexPool::ObjectStrIndexIterator is taken from this object. This means that the calling instance must not remove the object from memory.

◆ ~AllSetObjectStrIndexIteratorItem()

glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::~AllSetObjectStrIndexIteratorItem ( )

Destructor, m_pObjectStrIndexIterator is removed from memory.

Member Function Documentation

◆ getObjectStrIndexSize()

std::size_t glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::getObjectStrIndexSize ( ) const

Returns the number of elements in the container which manages the stored string indices and object IDs from the m_pObjectStrIndexIterator.

Returns
The number.
See also
IndexPool::ObjectStrIndexIterator::getObjectStrIndexSize()

◆ inObjectStrIndex()

bool glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::inObjectStrIndex ( const ObjID & rObjID)

Checks if an ObjStrIdTuple with passed object ID is present in the map which manages the stored string indices and object IDs.

Parameters
[in]rObjIDThe object ID of the searched entry.
Returns
If true, then present.

◆ operator=()

AllSetObjectStrIndexIteratorItem & glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::operator= ( const AllSetObjectStrIndexIteratorItem & )
private

The assignment operator is not available.

◆ setCurrentObject()

int glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::setCurrentObject ( const ObjID & rObjID)

Sets the internal iterator to the first position of the passed object ID in the map, which manages the stored string indices and object IDs.

Parameters
[in]rObjIDThe object ID.
Returns
A return < 0 indicates an error.

◆ setPosition()

int glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::setPosition ( std::size_t nPosition)

Sets the internal iterator to passed position (start is at 0) in the map, which manages the stored string indices and object IDs.

Parameters
[in]nPositionThe position.
Returns
A return < 0 indicates an error.

Member Data Documentation

◆ m_pObjectStrIndexIterator

IndexPool::ObjectStrIndexIterator* glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::m_pObjectStrIndexIterator

The iterator on a string index.

◆ m_sIndexName

std::string glo::TableReaderInterface::AllSetObjectStrIndexIteratorItem::m_sIndexName

The index name.


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