Cppcheck
|
#include <valueptr.h>
Classes | |
struct | cloner |
Public Types | |
using | pointer = T * |
using | element_type = T |
using | cloner_type = decltype(&cloner< T >::apply) |
Public Member Functions | |
ValuePtr () | |
template<class U > | |
ValuePtr (const U &value) | |
ValuePtr (const ValuePtr &rhs) | |
ValuePtr (ValuePtr &&rhs) NOEXCEPT | |
void | release () |
Releases the shared_ptr's ownership of the managed object using the .reset() function. More... | |
T * | get () NOEXCEPT |
const T * | get () const NOEXCEPT |
T & | operator* () |
const T & | operator* () const |
T * | operator-> () NOEXCEPT |
const T * | operator-> () const NOEXCEPT |
void | swap (ValuePtr &rhs) |
ValuePtr< T > & | operator= (ValuePtr rhs) |
operator bool () const NOEXCEPT | |
Private Attributes | |
std::shared_ptr< T > | mPtr |
cloner_type | mClone |
Definition at line 29 of file valueptr.h.
using ValuePtr< T >::cloner_type = decltype(&cloner<T>::apply) |
Definition at line 40 of file valueptr.h.
using ValuePtr< T >::element_type = T |
Definition at line 39 of file valueptr.h.
Definition at line 38 of file valueptr.h.
Definition at line 42 of file valueptr.h.
Definition at line 47 of file valueptr.h.
Definition at line 50 of file valueptr.h.
References ValuePtr< T >::get().
Definition at line 55 of file valueptr.h.
|
inline |
Definition at line 67 of file valueptr.h.
|
inline |
Definition at line 64 of file valueptr.h.
Referenced by ValuePtr< T >::ValuePtr().
|
inline |
Definition at line 97 of file valueptr.h.
|
inline |
Definition at line 71 of file valueptr.h.
|
inline |
Definition at line 74 of file valueptr.h.
|
inline |
Definition at line 81 of file valueptr.h.
|
inline |
Definition at line 78 of file valueptr.h.
Definition at line 91 of file valueptr.h.
|
inline |
Releases the shared_ptr's ownership of the managed object using the .reset() function.
Definition at line 60 of file valueptr.h.
Definition at line 85 of file valueptr.h.
References ValuePtr< T >::mClone, and ValuePtr< T >::mPtr.
|
private |
Definition at line 103 of file valueptr.h.
Referenced by ValuePtr< T >::swap().
|
private |
Definition at line 102 of file valueptr.h.
Referenced by ValuePtr< T >::swap().