Implementation for a exclusive lock guard. More...
#include <lockedobject_intf.h>
Public Member Functions | |
object_ptr_locked ()=default | |
CTOR. | |
object_ptr_locked (object_ptr_locked &&o_oOther)=default | |
move-CTOR | |
~object_ptr_locked () | |
DTOR. | |
object_ptr_locked & | operator= (object_ptr_locked &&o_oOther) |
move-assignment-operator | |
object_ptr_locked & | operator= (std::nullptr_t) |
null assignment-operator to Reset the value | |
virtual T * | Get () const override |
returns the value as pointer | |
virtual tResult | Reset (const iobject_ptr< T > &i_oOther) override |
Sets the value as pointer. | |
![]() | |
T * | operator-> () const |
arrow access | |
T & | operator* () const |
operator bool () const | |
Protected Member Functions | |
void | UnlockObject () override |
unlock the object | |
![]() | |
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 | |
![]() | |
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.
|
private |
Definition at line 209 of file lockedobject_intf.h.
|
default |
|
inline |
DTOR.
Definition at line 220 of file lockedobject_intf.h.
|
inlineoverridevirtual |
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.
References object_ptr_locked().
|
inline |
null assignment-operator to Reset the value
Definition at line 234 of file lockedobject_intf.h.
References object_ptr_locked().
|
inlineoverridevirtual |
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.
|
inlineoverrideprotectedvirtual |
unlock the object
Implements object_ptr_locked_common< T >.
Definition at line 252 of file lockedobject_intf.h.
References adtf::ucom::ant::ucom_cast(), and ILockedObject::Unlock().