Template Class ConstPtr

Class Documentation

template<typename T>
class ConstPtr

The ConstPtr is a wrapper to a const pointer that locks a mutex in the constructor and unlocks it in the destructor.

Public Functions

inline ConstPtr(const T *obj, Mutex *mutex)
ConstPtr(const ConstPtr&) = delete
ConstPtr &operator=(const ConstPtr&) = delete
inline ConstPtr(ConstPtr&&)
inline ConstPtr &operator=(ConstPtr&&)
inline ~ConstPtr()
inline operator bool() const
inline Mutex *mutex()
inline const T &operator*() const
inline const T *operator->() const