HDK
|
#include <UT_LockedRawPtr.h>
Public Types | |
typedef LOCKABLE::Scope | LockScopeT |
typedef T | ElementT |
Public Member Functions | |
UT_LockedRawPtr () | |
UT_LockedRawPtr (T &ref, LOCKABLE &lock) | |
Construct a locked ptr instance. More... | |
UT_LockedRawPtr (UT_LockedRawPtr &&other) | |
UT_LockedRawPtr & | operator= (UT_LockedRawPtr &&other) |
T & | operator* () const |
T * | operator-> () const |
T * | get () const |
SYS_SAFE_BOOL | operator bool () const |
A template class that allows auto-locking in a getter method. This class has pointer semantics and does NOT deal with ownership by design. The pointer that you give it MUST live longer than the lifetime of this class.
EXAMPLE:
Definition at line 40 of file UT_LockedRawPtr.h.
typedef T UT_LockedRawPtr< T, LOCKABLE >::ElementT |
Definition at line 45 of file UT_LockedRawPtr.h.
typedef LOCKABLE::Scope UT_LockedRawPtr< T, LOCKABLE >::LockScopeT |
Definition at line 44 of file UT_LockedRawPtr.h.
|
inline |
Definition at line 47 of file UT_LockedRawPtr.h.
|
inline |
Construct a locked ptr instance.
Definition at line 54 of file UT_LockedRawPtr.h.
|
inline |
This class is only movable
Definition at line 62 of file UT_LockedRawPtr.h.
|
inline |
Pointer semantic accessors
Definition at line 80 of file UT_LockedRawPtr.h.
|
inline |
Pointer semantic accessors
Definition at line 81 of file UT_LockedRawPtr.h.
|
inline |
Pointer semantic accessors
Definition at line 78 of file UT_LockedRawPtr.h.
|
inline |
Pointer semantic accessors
Definition at line 79 of file UT_LockedRawPtr.h.
|
inline |
This class is only movable
Definition at line 68 of file UT_LockedRawPtr.h.