|
GlobalObjects
|
#include <GloTOndemand.h>

Public Member Functions | |
| TOndemand () | |
| virtual | ~TOndemand () |
| int | get (std::shared_ptr< T > &rRetVal) |
| int | get (T *&prObj) |
| TOndemand (const TOndemand &rT) | |
| Copy constructor. | |
| template<class T2> | |
| TOndemand (const TOndemand< T2 > &rT) | |
| Copy constructor. | |
| int | set (const T *rObj) |
| Adopts the object ID of the passed object as reference. | |
| int | set (const T &rObj) |
| Adopts the object ID of the passed object as reference. | |
| int | set (const std::shared_ptr< T > &rObj) |
| Adopts the object ID of the passed object as reference. | |
| virtual int | set (const ObjID &rObj) override |
| Adopts the object ID of the passed object as reference. | |
| virtual int | set (const BasePersistent *rObj) override |
| Adopts the object ID of the passed object as reference. | |
| virtual int | set (const BasePersistent &rObj) override |
| Adopts the object ID of the passed object as reference. | |
| TOndemand< T > & | operator= (const TOndemand &rT) |
| Assignment operator. | |
| template<class T2> | |
| TOndemand< T > & | operator= (const TOndemand< T2 > &rT) |
| Assignment operator. | |
| bool | operator== (const TOndemand &rT) const |
| Comparison operator. | |
| bool | operator!= (const TOndemand &rT) const |
| Comparison operator. | |
| template<class T2> | |
| bool | operator== (const TOndemand< T2 > &rT) const |
| Comparison operator. | |
| template<class T2> | |
| bool | operator!= (const TOndemand< T2 > &rT) const |
| Comparison operator. | |
Public Member Functions inherited from glo::Reference | |
| Reference () | |
| Reference (const ObjID &rObjID) | |
| Reference (const Reference &rT) | |
| virtual | ~Reference () |
| virtual int | deleteInBase (EnDeepMode eDeepMode=DM_SHALLOW) |
| virtual Base * | getBase () const override |
| int | getBasePersistent (BasePersistent *&prRetVal) |
| int | getBasePersistent (std::shared_ptr< BasePersistent > &rspRetVal) |
| ObjID | getObjID () const |
| const ObjID * | getObjIDAsPointer () const |
| virtual int | getTypeAsString (std::string &rsTypeName) override |
| virtual int | isLocked (const LockSpecification &rLockSpecification) const |
| virtual int | isLocked (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) const |
| bool | isNULL () const |
| virtual int | isPossible (bool bRead, bool bWrite, bool bDelete, EnDeepMode eDeepMode=DM_SHALLOW) const |
| virtual int | isPossible (const LockPossibleSpecification &rLockPossibleSpec, EnDeepMode eDeepMode=DM_SHALLOW) const |
| virtual int | lock (const LockSpecification &rLockSpecification) const |
| virtual int | lock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) const |
| Reference & | operator= (const Reference &rT) |
| void | setNULL () |
| virtual int | setWatch (const WatchSpecification &rWatchSpec) const |
| virtual int | setWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) const |
| virtual int | unlock (const LockSpecification &rLockSpecification) const |
| virtual int | unlock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) const |
| virtual int | unsetWatch (const WatchSpecification &rWatchSpec) const |
| virtual int | unsetWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack) const |
| bool | operator== (const Reference &rT) const |
| Comparison operator. | |
| bool | operator!= (const Reference &rT) const |
| Comparison operator. | |
Public Member Functions inherited from glo::CallBack | |
| CallBack () | |
| virtual | ~CallBack () |
| virtual void | notify (NotifyNote &rNote) |
| CallBack & | operator= (const CallBack &rT) |
| virtual int | setBase (Base *pBase) |
| bool | operator== (const CallBack &rT) const |
| Comparison operator, all attributes are compared. | |
| bool | operator!= (const CallBack &rT) const |
| Comparison operator, all attributes are compared. | |
Static Public Member Functions | |
| static unsigned long | getStaticGloClassID () |
Private Member Functions | |
| TOndemand (const ObjID &rObjID) | |
Additional Inherited Members | |
Public Attributes inherited from glo::CallBack | |
| std::string | m_strDebugInfo |
Protected Member Functions inherited from glo::CallBack | |
| CallBack (const CallBack &rT) | |
| void | deinit () |
| void | init () |
| glo::TOndemand< T >::TOndemand | ( | ) |
Standard constructor.
References glo::CallBack::m_strDebugInfo, and SUPER.
Referenced by TOndemand(), TOndemand(), operator!=(), operator!=(), operator=(), operator=(), operator==(), and operator==().
|
private |
Constructor with parameter passing.
| [in] | rObjID | The object ID of the object to be referenced can be specified during creation. |
References glo::ERR_NOT_IMPLEMENTED_YET, and glo::CallBack::m_strDebugInfo.
| glo::TOndemand< T >::TOndemand | ( | const TOndemand< T > & | rT | ) |
Copy constructor.
| [in] | rT | The data is copied from this object. |
References TOndemand(), glo::CallBack::m_strDebugInfo, and SUPER.
Copy constructor.
| [in] | rT | The data is copied from this object. |
References TOndemand(), glo::CallBack::m_strDebugInfo, SUPER, and glo::IsBaseClassOf< Base, Derived >::value.
|
virtual |
Destructor
| int glo::TOndemand< T >::get | ( | std::shared_ptr< T > & | rRetVal | ) |
Returns the referenced object from the database (or from memory if already loaded) in a std::shared_ptr.
| [in,out] | rRetVal | The referenced object in a std::shared_ptr. |
References get().
| int glo::TOndemand< T >::get | ( | T *& | prObj | ) |
Returns the referenced object from the database (or from memory if already loaded).
| [in,out] | prObj | The pointer reference to the referenced object. |
References glo::ERR_WRONG_TYPE, and glo::BasePersistent::forget().
Referenced by get().
|
inlinestatic |
Returns the template class ID.
| bool glo::TOndemand< T >::operator!= | ( | const TOndemand< T > & | rT | ) | const |
Comparison operator.
| [in] | rT | The object to be compared with this one. |
References TOndemand().
| bool glo::TOndemand< T >::operator!= | ( | const TOndemand< T2 > & | rT | ) | const |
Comparison operator.
| [in] | rT | The object to be compared with this one. |
References TOndemand(), and glo::IsBaseClassOf< Base, Derived >::value.
| TOndemand< T > & glo::TOndemand< T >::operator= | ( | const TOndemand< T > & | rT | ) |
Assignment operator.
| [in] | rT | The data is transferred from this object. |
References TOndemand().
| TOndemand< T > & glo::TOndemand< T >::operator= | ( | const TOndemand< T2 > & | rT | ) |
Assignment operator.
| [in] | rT | The data is transferred from this object. |
References TOndemand(), and glo::IsBaseClassOf< Base, Derived >::value.
| bool glo::TOndemand< T >::operator== | ( | const TOndemand< T > & | rT | ) | const |
Comparison operator.
| [in] | rT | The object to be compared with this one. |
References TOndemand().
| bool glo::TOndemand< T >::operator== | ( | const TOndemand< T2 > & | rT | ) | const |
Comparison operator.
| [in] | rT | The object to be compared with this one. |
References TOndemand(), and glo::IsBaseClassOf< Base, Derived >::value.
|
overridevirtual |
Adopts the object ID of the passed object as reference.
| [in] | rObj | See above. |
Reimplemented from glo::Reference.
References set().
|
overridevirtual |
Adopts the object ID of the passed object as reference.
| [in] | rObj | See above. |
Reimplemented from glo::Reference.
References glo::ERR_WRONG_TYPE, glo::ObjID::getClassID(), glo::BasePersistent::getObjID(), and glo::ObjID::isNULL().
|
overridevirtual |
Adopts the object ID of the passed object as reference.
| [in] | rObj | See above. |
Reimplemented from glo::Reference.
References glo::ERR_WRONG_TYPE, glo::ObjID::getClassID(), and glo::ObjID::isNULL().
| int glo::TOndemand< T >::set | ( | const std::shared_ptr< T > & | rObj | ) |
Adopts the object ID of the passed object as reference.
| [in] | rObj | See above. |
References set().
| int glo::TOndemand< T >::set | ( | const T & | rObj | ) |
Adopts the object ID of the passed object as reference.
| [in] | rObj | See above. |
References glo::ERR_WRONG_TYPE.
| int glo::TOndemand< T >::set | ( | const T * | rObj | ) |
Adopts the object ID of the passed object as reference.
| [in] | rObj | See above. |
References glo::ERR_WRONG_TYPE.
Referenced by glo::TOndemandList< T >::get(), glo::TOndemandList< T >::get(), glo::TOndemandSet< T >::get(), glo::TOndemandSet< T >::get(), set(), set(), glo::TAllSet< T >::transferObjIListIntoOndemandContainer(), and glo::TAllSet< T >::transferObjIListIntoOndemandContainer().