Fabcoin Core
0.16.2
P2P Digital Currency
|
Pointer that overloads operator -> More...
#include <smartptr.h>
Public Member Functions | |
member_ptr (T *p=NULL) | |
~member_ptr () | |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
const T * | get () const |
T * | get () |
T * | release () |
void | reset (T *p=0) |
Protected Member Functions | |
member_ptr (const member_ptr< T > &rhs) | |
void | operator= (const member_ptr< T > &rhs) |
Protected Attributes | |
T * | m_p |
Pointer that overloads operator ->
T | class or type |
member_ptr is used frequently in the library to avoid the issues related to std::auto_ptr in C++11 (deprecated) and std::unique_ptr in C++03 (non-existent).
Definition at line 39 of file smartptr.h.
|
inlineexplicit |
member_ptr< T >::~member_ptr | ( | ) |
|
protected |
|
inline |
|
inline |
Definition at line 53 of file smartptr.h.
|
inline |
Definition at line 46 of file smartptr.h.
|
inline |
Definition at line 47 of file smartptr.h.
|
inline |
Definition at line 49 of file smartptr.h.
|
inline |
Definition at line 50 of file smartptr.h.
|
protected |
|
inline |
void member_ptr< T >::reset | ( | T * | p = 0 | ) |
|
protected |
Definition at line 68 of file smartptr.h.