Crypto++ 8.2
Free C&
|
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) | |
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) |
Reference counted pointer.
T | class or type |
users should declare m_referenceCount
as std::atomic<unsigned>
(or similar) under C++ 11
Definition at line 128 of file smartptr.h.
|
explicit |
Definition at line 154 of file smartptr.h.
|
inline |
Definition at line 132 of file smartptr.h.
counted_ptr< T >::counted_ptr | ( | const counted_ptr< T > & | rhs | ) |
Definition at line 161 of file smartptr.h.
counted_ptr< T >::~counted_ptr |
Definition at line 168 of file smartptr.h.
|
inline |
Definition at line 137 of file smartptr.h.
|
inline |
Definition at line 138 of file smartptr.h.
|
inline |
Definition at line 140 of file smartptr.h.
|
inline |
Definition at line 141 of file smartptr.h.
|
inline |
Definition at line 143 of file smartptr.h.
T * counted_ptr< T >::get |
Definition at line 190 of file smartptr.h.
void counted_ptr< T >::attach | ( | const T & | p | ) |
Definition at line 174 of file smartptr.h.
counted_ptr< T > & counted_ptr< T >::operator= | ( | const counted_ptr< T > & | rhs | ) |
Definition at line 202 of file smartptr.h.