LockingPointer.h
Go to the documentation of this file.
Definition: LockingPointer.h:56
void reset()
Forget the raw pointer - unlock if any value was set. Become a nil pointer.
Definition: LockingPointer.h:124
bool operator!=(const SelfType &o) const
Definition: LockingPointer.h:102
const SelfType & operator=(const SelfType &o)
Definition: LockingPointer.h:85
constexpr LockingPointer(std::nullptr_t)
constructs a nil smart pointer from nullptr
Definition: LockingPointer.h:65
void resetWithoutLocking(T *t)
Reset raw pointer - unlock any previous one and save new one without locking.
Definition: LockingPointer.h:111
~LockingPointer()
use the custom UnLocker to unlock any value still stored.
Definition: LockingPointer.h:79
bool operator==(const SelfType &o) const
Definition: LockingPointer.h:101
T * release()
Forget the raw pointer without unlocking it. Become a nil pointer.
Definition: LockingPointer.h:127
void lock(T *t)
The lock() method increments Object's reference counter.
Definition: LockingPointer.h:135
Security::LockingPointer< T, UnLocker, Locker > SelfType
a helper label to simplify this objects API definitions below
Definition: LockingPointer.h:59
LockingPointer(const SelfType &o)
Definition: LockingPointer.h:82
HardFun< bool, const void *, nilFunction > NilFunctor
Definition: LockingPointer.h:42
Definition: HardFun.h:16