A type-safe set of pointers to persistent objects in the database (intended as an attribute for persistent objects).
Objects can be inserted only once.
More...
|
| TPointerSet () |
|
| TPointerSet (Base &rBase) |
|
virtual | ~TPointerSet () |
|
virtual int | get (std::shared_ptr< T > &rRetVal, EnSeekMode eMode) |
|
virtual int | get (T *&prRetVal, EnSeekMode eMode) |
|
virtual int | getTypeAsString (std::string &rsTypeName) override |
|
virtual int | insert (std::shared_ptr< T > spNewObj) |
|
virtual int | insert (T *pNewObj) |
|
virtual int | remove (std::shared_ptr< T > spObject) |
|
virtual int | remove (T *pObject) |
|
| 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 | 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.
|
|
template<class T>
class glo::TPointerSet< T >
A type-safe set of pointers to persistent objects in the database (intended as an attribute for persistent objects).
Objects can be inserted only once.
When a persistent object with an attribute of type TPointerSet is loaded from the database into memory, the objects contained in the TPointerSet are automatically loaded into memory.
This class ensures that the method Persistent::forget() of the contained objects is called when the object is destroyed.
When an object is delivered, the method Persistent::remember() is called.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby