ADTF
|
Implementation for a exclusive lock guard. More...
Public Member Functions | |
object_ptr_locked ()=default | |
CTOR. | |
object_ptr_locked (object_ptr_locked &&o_oOther)=default | |
move-CTOR More... | |
~object_ptr_locked () | |
DTOR. | |
object_ptr_locked & | operator= (object_ptr_locked &&o_oOther) |
move-assignment-operator More... | |
object_ptr_locked & | operator= (std::nullptr_t) |
null assignment-operator to Reset the value | |
virtual T * | Get () const |
returns the value as pointer More... | |
virtual tResult | Reset (const iobject_ptr< T > &i_oOther) |
Sets the value as pointer. More... | |
Public Member Functions inherited from object_ptr_locked_common< T > | |
T * | operator-> () const |
arrow access | |
T & | operator* () const |
operator bool () const | |
Protected Member Functions | |
void | UnlockObject () override |
unlock the object | |
Protected Member Functions inherited from object_ptr_locked_common< T > | |
object_ptr_locked_common (object_ptr_locked_common &&o_oOther) | |
tResult | Reset (const iobject_ptr< T > &i_oOther) |
void | Release () |
void | Swap (object_ptr_locked_common &i_oOther) |
T * | GetPtr () const |
Private Types | |
typedef detail::object_ptr_locked_common< T > | base_type |
Additional Inherited Members | |
Protected Attributes inherited from object_ptr_locked_common< T > | |
object_ptr< T > | m_pObjectPtr |
Implementation for a exclusive lock guard.
This template can be used with any implementation for ILockedObject.
T | Type for a ILockedObject derived interface. |
Definition at line 204 of file lockedobject_intf.h.
|
default |
move-CTOR
o_oOther | [in] ... |
|
inlinevirtual |
returns the value as pointer
Implements iobject_ptr_locked< T >.
Definition at line 240 of file lockedobject_intf.h.
|
inline |
move-assignment-operator
o_oOther | [in] ... |
Definition at line 227 of file lockedobject_intf.h.
|
inlinevirtual |
Sets the value as pointer.
i_oOther | [in] Reference to the locked object. |
Implements iobject_ptr_locked< T >.
Definition at line 245 of file lockedobject_intf.h.