Is the abstract base class of pointer sets and lists. More...
#include <GloPointerLot.h>
Public Member Functions | |
PointerLot () | |
PointerLot (Base &rBase) | |
virtual | ~PointerLot () |
virtual Base * | getBase () const override |
virtual int | getObjID (ObjID &rObjID, EnSeekMode eMode) override |
virtual int | getPers (BasePersistent *&prRetVal, EnSeekMode eMode) override=0 |
virtual int | insertPersBefore (BasePersistent *pNewObj, const BasePersistent *pObject) override |
virtual int | removePers (BasePersistent *pObject) override=0 |
virtual int | setBase (Base *pBase) override |
virtual bool | inLot (const ObjID &object) const override=0 |
Checks if passed object is referenced in the container. | |
virtual bool | inLot (const BasePersistent &object) const override |
Checks if passed object is referenced in the container. | |
virtual bool | inLot (const std::shared_ptr< BasePersistent > object) const override |
Checks if passed object is referenced in the container. | |
![]() | |
BaseLot () | |
virtual | ~BaseLot () |
virtual int | appendPers (BasePersistent *pNewObj) |
virtual int | appendPers (std::shared_ptr< BasePersistent > spNewObj) |
virtual void | clear ()=0 |
virtual int | getPers (std::shared_ptr< BasePersistent > &rRetVal, EnSeekMode eMode) |
virtual int | getTypeAsString (std::string &rsTypeName) override |
virtual int | insertPers (BasePersistent *pNewObj) |
virtual int | insertPers (std::shared_ptr< BasePersistent > spNewObj) |
virtual int | insertPersBefore (std::shared_ptr< BasePersistent > spNewObj, const std::shared_ptr< BasePersistent > spObject) |
virtual int | lock (const LockSpecification &rLockSpecification) |
virtual int | lock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) |
virtual int | removePers (std::shared_ptr< BasePersistent > spObject) |
virtual int | setWatch (const WatchSpecification &rWatchSpec) |
virtual int | setWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) |
virtual int | unlock (const LockSpecification &rLockSpecification) |
virtual int | unlock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) |
virtual int | unsetWatch (const WatchSpecification &rWatchSpec) |
virtual int | unsetWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) |
![]() | |
AbstractBaseLot () | |
virtual | ~AbstractBaseLot () |
virtual int | getPersistent (BasePersistent *&prRetVal, const ObjID &prObjID)=0 |
virtual int | getPersistent (std::shared_ptr< BasePersistent > &rRetVal, const ObjID &rObjID) |
virtual int | setCurrentObject (const BasePersistent &rObject) |
virtual int | setCurrentObject (const ObjID &rObjID)=0 |
virtual int | setPosition (std::size_t nPosition)=0 |
virtual std::size_t | size () const =0 |
![]() | |
CallBack () | |
virtual | ~CallBack () |
virtual void | notify (NotifyNote &rNote) |
CallBack & | operator= (const CallBack &rT) |
bool | operator== (const CallBack &rT) const |
Comparison operator, all attributes are compared. | |
bool | operator!= (const CallBack &rT) const |
Comparison operator, all attributes are compared. | |
Private Member Functions | |
PointerLot (const PointerLot &) | |
PointerLot & | operator= (const PointerLot &) |
Private Attributes | |
Base * | m_pBase |
Additional Inherited Members | |
![]() | |
std::string | m_strDebugInfo |
![]() | |
int | lockObjID (const ObjID &rObjID) |
int | setWatchObjID (const ObjID &rObjID) |
int | takeOverBase (const BasePersistent *pObj) |
int | takeOverBase (const Reference *pRef) |
int | unlockObjID (const ObjID &rObjID) |
int | unsetWatchObjID (const ObjID &rObjID) |
![]() | |
CallBack (const CallBack &rT) | |
void | deinit () |
void | init () |
![]() | |
unsigned long | m_ulClassID |
Is the abstract base class of pointer sets and lists.
glo::PointerLot::PointerLot | ( | ) |
Standard constructor.
Referenced by PointerLot(), and operator=().
glo::PointerLot::PointerLot | ( | Base & | rBase | ) |
Constructor with parameter passing.
[in] | rBase | The database is passed. |
|
virtual |
Destructor.
|
private |
The copy constructor is not available.
References PointerLot().
|
overridevirtual |
Implements glo::BaseLot.
|
overridevirtual |
Returns an object id from the container in relation to eMode.
[in,out] | rObjID | The object ID if found. |
[in] | eMode | The seek mode. |
Parameter examples:
Implements glo::BaseLot.
|
overridepure virtual |
Returns an object from the container in relation to eMode.
[in,out] | prRetVal | If no error, the fetched object. |
[in] | eMode | The seek mode. |
Parameter examples:
Implements glo::BaseLot.
Implemented in glo::PointerList, and glo::PointerSet.
|
overridevirtual |
Checks if passed object is referenced in the container.
[in] | object | The object to check. |
Reimplemented from glo::BaseLot.
Reimplemented in glo::PointerList, and glo::PointerSet.
|
overridepure virtual |
Checks if passed object is referenced in the container.
[in] | object | The object to check. |
Implements glo::BaseLot.
Implemented in glo::PointerList, and glo::PointerSet.
|
overridevirtual |
Checks if passed object is referenced in the container.
[in] | object | The object to check. |
Reimplemented from glo::BaseLot.
Reimplemented in glo::PointerList, and glo::PointerSet.
|
overridevirtual |
Inserts a persistent object before another object in the container.
If the container is locked, the object to be inserted is locked with the lock mode of the container.
If the container is monitored, the object to be inserted is also monitored with the monitoring mode of the container.
[in] | pNewObj | The persistent object to be inserted. |
[in] | pObject | The subsequent persistent object. |
Reimplemented from glo::BaseLot.
Reimplemented in glo::PointerSet.
|
inlineprivate |
The assignment operator is not available.
References PointerLot().
|
overridepure virtual |
Removes persistent object from the container.
If the container is locked, the object to be removed is released with the lock mode of the container.
If the container is monitored, the monitoring of the object to be removed is ended with the monitoring mode of the container.
[in] | pObject | The persistent object to be removed. |
Implements glo::BaseLot.
Implemented in glo::PointerList, and glo::PointerSet.
|
overridevirtual |
Sets the database in which the container objects are stored. If a database is already referenced and it does not match the database passed, a eut::ErrorNException is thrown.
[in] | pBase | The database. |
Implements glo::BaseLot.
|
private |
Pointer container belong to a database.