LockingPointer.h
Go to the documentation of this file.
Definition: LockingPointer.h:49
void reset()
Forget the raw pointer - unlock if any value was set. Become a nil pointer.
Definition: LockingPointer.h:117
bool operator!=(const SelfType &o) const
Definition: LockingPointer.h:95
const SelfType & operator=(const SelfType &o)
Definition: LockingPointer.h:78
constexpr LockingPointer(std::nullptr_t)
constructs a nil smart pointer from nullptr
Definition: LockingPointer.h:58
void resetWithoutLocking(T *t)
Reset raw pointer - unlock any previous one and save new one without locking.
Definition: LockingPointer.h:104
~LockingPointer()
use the custom UnLocker to unlock any value still stored.
Definition: LockingPointer.h:72
bool operator==(const SelfType &o) const
Definition: LockingPointer.h:94
T * release()
Forget the raw pointer without unlocking it. Become a nil pointer.
Definition: LockingPointer.h:120
void lock(T *t)
The lock() method increments Object's reference counter.
Definition: LockingPointer.h:128
Security::LockingPointer< T, UnLocker, Locker > SelfType
a helper label to simplify this objects API definitions below
Definition: LockingPointer.h:52
LockingPointer(const SelfType &o)
Definition: LockingPointer.h:75
HardFun< bool, const void *, nilFunction > NilFunctor
Definition: LockingPointer.h:35
Definition: HardFun.h:16