Fabcoin Core
0.16.2
P2P Digital Currency
|
Reference counted pointer. More...
#include <smartptr.h>
Public Member Functions | |
counted_ptr (T *p=0) | |
counted_ptr (const T &r) | |
counted_ptr (const counted_ptr< T > &rhs) | |
~counted_ptr () | |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
const T * | get () const |
T * | get () |
void | attach (const T &p) |
counted_ptr< T > & | operator= (const counted_ptr< T > &rhs) |
Private Attributes | |
T * | m_p |
Reference counted pointer.
T | class or type |
users should declare m_referenceCount
as std::atomic<unsigned>
(or similar) under C++ 11
Definition at line 134 of file smartptr.h.
|
explicit |
Definition at line 160 of file smartptr.h.
|
inline |
Definition at line 138 of file smartptr.h.
counted_ptr< T >::counted_ptr | ( | const counted_ptr< T > & | rhs | ) |
Definition at line 167 of file smartptr.h.
counted_ptr< T >::~counted_ptr | ( | ) |
Definition at line 174 of file smartptr.h.
void counted_ptr< T >::attach | ( | const T & | p | ) |
Definition at line 180 of file smartptr.h.
|
inline |
T * counted_ptr< T >::get | ( | ) |
Definition at line 196 of file smartptr.h.
|
inline |
Definition at line 143 of file smartptr.h.
|
inline |
Definition at line 144 of file smartptr.h.
|
inline |
Definition at line 146 of file smartptr.h.
|
inline |
Definition at line 147 of file smartptr.h.
counted_ptr< T > & counted_ptr< T >::operator= | ( | const counted_ptr< T > & | rhs | ) |
|
private |
Definition at line 157 of file smartptr.h.