LockingPointer.h
Definition: HardFun.h:16
const SelfType & operator=(const SelfType &o)
Definition: LockingPointer.h:84
HardFun< bool, const void *, nilFunction > NilFunctor
Definition: LockingPointer.h:41
T * release()
Forget the raw pointer without unlocking it. Become a nil pointer.
Definition: LockingPointer.h:125
bool operator==(const SelfType &o) const
Definition: LockingPointer.h:100
void reset()
Forget the raw pointer - unlock if any value was set. Become a nil pointer.
Definition: LockingPointer.h:122
Security::LockingPointer< T, UnLocker, Locker > SelfType
a helper label to simplify this objects API definitions below
Definition: LockingPointer.h:58
void lock(T *t)
The lock() method increments Object's reference counter.
Definition: LockingPointer.h:133
constexpr LockingPointer(std::nullptr_t)
constructs a nil smart pointer from nullptr
Definition: LockingPointer.h:64
~LockingPointer()
use the custom UnLocker to unlock any value still stored.
Definition: LockingPointer.h:78
LockingPointer(const SelfType &o)
Definition: LockingPointer.h:81
bool operator!=(const SelfType &o) const
Definition: LockingPointer.h:101
void resetWithoutLocking(T *t)
Reset raw pointer - unlock any previous one and save new one without locking.
Definition: LockingPointer.h:109
Definition: LockingPointer.h:55