PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | List of all members
PIProtectedVariable< T >::Pointer Class Reference

Pointer-like wrapper returned by getRef() while the protected value remains locked. More...

#include <piprotectedvariable.h>

Public Member Functions

 Pointer (Pointer &&other)
 Move constructor - transfers ownership of the lock.
 
 ~Pointer ()
 Destroys wrapper and releases the mutex.
 
T * operator-> ()
 Returns pointer access to the protected value.
 
T & operator* ()
 Returns reference access to the protected value.
 

Detailed Description

template<typename T>
class PIProtectedVariable< T >::Pointer

Pointer-like wrapper returned by getRef() while the protected value remains locked.