Class to manage objects in the IndexPool::ObjectStrIndex.
More...
#include <GloIndexPool.h>
Class to manage objects in the IndexPool::ObjectStrIndex.
An ObjStrIdTuple has as attributes the index as sortable string and the object ID of a stored record.
Additionally, the string can be marked as reserved in a transaction.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby
◆ ObjStrIdTuple() [1/3]
glo::IndexPool::ObjStrIdTuple::ObjStrIdTuple |
( |
| ) |
|
◆ ObjStrIdTuple() [2/3]
glo::IndexPool::ObjStrIdTuple::ObjStrIdTuple |
( |
const std::string & | rsIndex, |
|
|
const ObjID & | rObjID, |
|
|
NUM_PTR | ipReservingComunicatorTrx = 0 ) |
Constructor with parameter passing.
- Parameters
-
[in] | rsIndex | The index of an object. |
[in] | rObjID | The object ID of the object with the index. |
[in] | ipReservingComunicatorTrx | The address, casted to NUM_PTR, of a Communicator in whose transaction the index was reserved, if applicable. If this is set, the index is 'only' reserved. |
◆ ObjStrIdTuple() [3/3]
glo::IndexPool::ObjStrIdTuple::ObjStrIdTuple |
( |
const ObjStrIdTuple & | rT | ) |
|
Copy constructor.
- Parameters
-
[in] | rT | The data is copied from this object. |
◆ ~ObjStrIdTuple()
virtual glo::IndexPool::ObjStrIdTuple::~ObjStrIdTuple |
( |
| ) |
|
|
virtual |
◆ getIndex()
std::string glo::IndexPool::ObjStrIdTuple::getIndex |
( |
| ) |
const |
Get method for m_sIndex.
- Returns
- The index of an object.
◆ getObjID()
ObjID glo::IndexPool::ObjStrIdTuple::getObjID |
( |
| ) |
const |
Get method for m_ObjID.
- Returns
- The object ID of the object with the index.
◆ getReservingComunicatorTrx()
NUM_PTR glo::IndexPool::ObjStrIdTuple::getReservingComunicatorTrx |
( |
| ) |
const |
◆ operator!=()
bool glo::IndexPool::ObjStrIdTuple::operator!= |
( |
const ObjStrIdTuple & | rT | ) |
const |
◆ operator<()
bool glo::IndexPool::ObjStrIdTuple::operator< |
( |
const ObjStrIdTuple & | rT | ) |
const |
◆ operator<=()
bool glo::IndexPool::ObjStrIdTuple::operator<= |
( |
const ObjStrIdTuple & | rT | ) |
const |
◆ operator=()
Assignment operator.
- Parameters
-
[in] | rT | The data is transferred from this object. |
◆ operator==()
bool glo::IndexPool::ObjStrIdTuple::operator== |
( |
const ObjStrIdTuple & | rT | ) |
const |
◆ operator>()
bool glo::IndexPool::ObjStrIdTuple::operator> |
( |
const ObjStrIdTuple & | rT | ) |
const |
◆ operator>=()
bool glo::IndexPool::ObjStrIdTuple::operator>= |
( |
const ObjStrIdTuple & | rT | ) |
const |
◆ setIndex()
void glo::IndexPool::ObjStrIdTuple::setIndex |
( |
const std::string & | rsIndex | ) |
|
Set method for m_sIndex.
- Parameters
-
[in] | rsIndex | The index of an object. |
◆ setObjID()
void glo::IndexPool::ObjStrIdTuple::setObjID |
( |
const ObjID & | rObjID | ) |
|
Set method for m_ObjID.
- Parameters
-
[in] | rObjID | The object ID of the object with the index. |
◆ setReservingComunicatorTrx()
void glo::IndexPool::ObjStrIdTuple::setReservingComunicatorTrx |
( |
NUM_PTR | ipReservingComunicatorTrx | ) |
|
Set method for m_ipReservingComunicatorTrx.
- Parameters
-
[in] | ipReservingComunicatorTrx | The address, casted to NUM_PTR, of a Communicator in whose transaction the index was reserved, if applicable. If this is set, the index is 'only' reserved. |
◆ setValues()
void glo::IndexPool::ObjStrIdTuple::setValues |
( |
const std::string & | rsIndex, |
|
|
const ObjID & | rObjID, |
|
|
NUM_PTR | ipReservingComunicatorTrx = 0 ) |
Sets its values.
- Parameters
-
[in] | rsIndex | The index of an object. |
[in] | rObjID | The object ID of the object with the index. |
[in] | ipReservingComunicatorTrx | The address, casted to NUM_PTR, of a Communicator in whose transaction the index was reserved, if applicable. If this is set, the index is 'only' reserved. |
- Exceptions
-
◆ toString()
std::string glo::IndexPool::ObjStrIdTuple::toString |
( |
| ) |
const |
Returns in the form 'Index|Object ID|' e.g. "MUELLER KARL-THEOD|7.0.2743|"
- Returns
- The index with the object ID in a string.
◆ m_ipReservingComunicatorTrx
NUM_PTR glo::IndexPool::ObjStrIdTuple::m_ipReservingComunicatorTrx |
|
private |
◆ m_ObjID
ObjID glo::IndexPool::ObjStrIdTuple::m_ObjID |
|
private |
The object ID of the object with the index.
◆ m_sIndex
std::string glo::IndexPool::ObjStrIdTuple::m_sIndex |
|
private |
A possibly composed index (e.g., if the index in the schema: 'Index=Person.m_sName[10]|NaturalPerson.m_sFirstName[7]|' and the language 'de', then the name "Müller" and the first name "Karl-Theodor" become the index "Mueller Karl-Theod" and if not 'CaseSensitive' the index "MUELLER KARL-THEOD".
The documentation for this class was generated from the following file: