GlobalObjects
Loading...
Searching...
No Matches
glo::IndexPool::ObjIdPosTuple Class Reference

Class to manage objects in the IndexPool::TableObjIdIndex. More...

#include <GloIndexPool.h>

Public Member Functions

 ObjIdPosTuple ()
 
 ObjIdPosTuple (const ObjID &rObjID, std::streampos FilePosition)
 
 ObjIdPosTuple (const ObjIdPosTuple &rT)
 
virtual ~ObjIdPosTuple ()
 
IndexPool::ObjIdPosTupleoperator= (const ObjIdPosTuple &rT)
 
std::string toString () const
 
bool operator== (const ObjIdPosTuple &rT) const
 
bool operator!= (const ObjIdPosTuple &rT) const
 
bool operator> (const ObjIdPosTuple &rT) const
 
bool operator>= (const ObjIdPosTuple &rT) const
 
bool operator< (const ObjIdPosTuple &rT) const
 
bool operator<= (const ObjIdPosTuple &rT) const
 
bool operator== (std::streampos Pos) const
 
bool operator!= (std::streampos Pos) const
 
bool operator> (std::streampos Pos) const
 
bool operator>= (std::streampos Pos) const
 
bool operator< (std::streampos Pos) const
 
bool operator<= (std::streampos Pos) const
 

Public Attributes

std::streampos m_FilePosition
 
ObjID m_ObjID
 

Detailed Description

Class to manage objects in the IndexPool::TableObjIdIndex.

ObjIdPosTuples have as attributes the object ID and the table position of a stored record.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ ObjIdPosTuple() [1/3]

glo::IndexPool::ObjIdPosTuple::ObjIdPosTuple ( )

Standard constructor.

◆ ObjIdPosTuple() [2/3]

glo::IndexPool::ObjIdPosTuple::ObjIdPosTuple ( const ObjID & rObjID,
std::streampos FilePosition )

Constructor with parameter passing.

Parameters
[in]rObjIDThe object ID of the stored record.
[in]FilePositionThe table position of the stored record.

◆ ObjIdPosTuple() [3/3]

glo::IndexPool::ObjIdPosTuple::ObjIdPosTuple ( const ObjIdPosTuple & rT)

Copy constructor.

Parameters
[in]rTThe data is copied from this object.

◆ ~ObjIdPosTuple()

virtual glo::IndexPool::ObjIdPosTuple::~ObjIdPosTuple ( )
virtual

Destructor.

Member Function Documentation

◆ operator!=() [1/2]

bool glo::IndexPool::ObjIdPosTuple::operator!= ( const ObjIdPosTuple & rT) const

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator!=() [2/2]

bool glo::IndexPool::ObjIdPosTuple::operator!= ( std::streampos Pos) const

Comparison operator.

Parameters
[in]PosOnly the table position is compared.

◆ operator<() [1/2]

bool glo::IndexPool::ObjIdPosTuple::operator< ( const ObjIdPosTuple & rT) const

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator<() [2/2]

bool glo::IndexPool::ObjIdPosTuple::operator< ( std::streampos Pos) const

Comparison operator.

Parameters
[in]PosOnly the table position is compared.

◆ operator<=() [1/2]

bool glo::IndexPool::ObjIdPosTuple::operator<= ( const ObjIdPosTuple & rT) const

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator<=() [2/2]

bool glo::IndexPool::ObjIdPosTuple::operator<= ( std::streampos Pos) const

Comparison operator.

Parameters
[in]PosOnly the table position is compared.

◆ operator=()

IndexPool::ObjIdPosTuple & glo::IndexPool::ObjIdPosTuple::operator= ( const ObjIdPosTuple & rT)

Assignment operator.

Parameters
[in]rTThe data is transferred from this object.

◆ operator==() [1/2]

bool glo::IndexPool::ObjIdPosTuple::operator== ( const ObjIdPosTuple & rT) const

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator==() [2/2]

bool glo::IndexPool::ObjIdPosTuple::operator== ( std::streampos Pos) const

Comparison operator.

Parameters
[in]PosOnly the table position is compared.

◆ operator>() [1/2]

bool glo::IndexPool::ObjIdPosTuple::operator> ( const ObjIdPosTuple & rT) const

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator>() [2/2]

bool glo::IndexPool::ObjIdPosTuple::operator> ( std::streampos Pos) const

Comparison operator.

Parameters
[in]PosOnly the table position is compared.

◆ operator>=() [1/2]

bool glo::IndexPool::ObjIdPosTuple::operator>= ( const ObjIdPosTuple & rT) const

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator>=() [2/2]

bool glo::IndexPool::ObjIdPosTuple::operator>= ( std::streampos Pos) const

Comparison operator.

Parameters
[in]PosOnly the table position is compared.

◆ toString()

std::string glo::IndexPool::ObjIdPosTuple::toString ( ) const

Returns in the form 'Object ID|FilePosition|' e.g. "7.0.2743|349|".

Returns
The object ID and the table position in one string.

Member Data Documentation

◆ m_FilePosition

std::streampos glo::IndexPool::ObjIdPosTuple::m_FilePosition

The table position of the stored record.

◆ m_ObjID

ObjID glo::IndexPool::ObjIdPosTuple::m_ObjID

The object ID of the stored record.


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