Is the base class of a template set. The persistent objects are managed in a std::set.
Objects can be inserted only once.
More...
|
| PointerSet () |
|
| PointerSet (Base &rBase) |
|
virtual | ~PointerSet () |
|
virtual void | clear () |
|
virtual int | getPers (BasePersistent *&prRetVal, EnSeekMode eMode) |
|
virtual int | getPersistent (BasePersistent *&prRetVal, const ObjID &rObjID) |
|
virtual int | insertPers (BasePersistent *pNewObj) |
|
virtual int | removePers (BasePersistent *pObject) |
|
std::set< BasePersistent * > & | Set () |
|
virtual int | setCurrentObject (const ObjID &rObjID) |
|
virtual int | setPosition (std::size_t nPosition) |
|
virtual std::size_t | size () const |
|
|
virtual void | getAllClassIDs (std::list< ObjID > &rAllClassIDs) const |
| See description in superclass.
|
|
virtual bool | inLot (const ObjID &object) const |
| See description in superclass.
|
|
virtual bool | inLot (const BasePersistent &object) const |
| See description in superclass.
|
|
virtual bool | inLot (const std::shared_ptr< BasePersistent > object) const |
| See description in superclass.
|
|
| PointerLot () |
|
| PointerLot (Base &rBase) |
|
virtual | ~PointerLot () |
|
virtual Base * | getBase () const override |
|
virtual int | getObjID (ObjID &rObjID, EnSeekMode eMode) |
|
virtual int | setBase (Base *pBase) override |
|
| BaseLot () |
|
virtual | ~BaseLot () |
|
virtual int | getPers (std::shared_ptr< BasePersistent > &rRetVal, EnSeekMode eMode) |
|
virtual int | getTypeAsString (std::string &rsTypeName) override |
|
virtual int | insertPers (std::shared_ptr< BasePersistent > spNewObj) |
|
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 (std::shared_ptr< BasePersistent > &rRetVal, const ObjID &rObjID) |
|
virtual int | setCurrentObject (const BasePersistent &rObject) |
|
| 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.
|
|
Is the base class of a template set. The persistent objects are managed in a std::set.
Objects can be inserted only once.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby
Inserts a persistent object into the set.
If the set is locked, the object to be inserted is locked with the lock mode of the set.
If the set is monitored, the object to be inserted is also monitored with the monitoring mode of the set.
- Parameters
-
[in] | pNewObj | The persistent object to be inserted. If no error, the linkcounter is incremented by pNewObj. |
- Returns
- A return value < 0 indicates an error.
- Attention
- The internal iterator m_poObjSetIterator points to the inserted element if the insertion is successful.
Reimplemented from glo::BaseLot.
Removes persistent object from the set.
If the set is locked, the object to be removed is released with the lock mode of the set.
If the set is monitored, the monitoring of the object to be removed is ended with the monitoring mode of the set.
- Parameters
-
[in] | pObject | The persistent object to be removed. The linkcounter of pObj is decremented, if in Set. |
- Returns
- A return value < 0 indicates an error.
- Attention
- The internal iterator m_poObjSetIterator points to the element following the removed one if the deletion was successful. If there is no subsequent element, the internal iterator m_poObjSetIterator points to the container end.
Implements glo::PointerLot.