Code::Blocks
SVN r11506
|
Josuttis' implementation of CountedPtr. More...
Public Member Functions | |
CountedPtr (T *p=nullptr) | |
CountedPtr (const CountedPtr< T > &p) | |
~CountedPtr () | |
CountedPtr< T > & | operator= (const CountedPtr< T > &p) |
assignment (unshare old and share new value) More... | |
T & | operator* () const |
access the value to which the pointer refers More... | |
T * | operator-> () const |
Private Member Functions | |
void | dispose () |
decrease the counter, and if it get 0, destroy both counter and value More... | |
Private Attributes | |
T * | ptr |
long * | count |
Josuttis' implementation of CountedPtr.
Definition at line 95 of file cbthreadpool.h.
|
inlineexplicit |
Definition at line 104 of file cbthreadpool.h.
|
inline |
Definition at line 106 of file cbthreadpool.h.
|
inline |
Definition at line 112 of file cbthreadpool.h.
|
inlineprivate |
decrease the counter, and if it get 0, destroy both counter and value
Definition at line 143 of file cbthreadpool.h.
|
inline |
access the value to which the pointer refers
Definition at line 131 of file cbthreadpool.h.
|
inline |
Definition at line 136 of file cbthreadpool.h.
|
inline |
assignment (unshare old and share new value)
Definition at line 117 of file cbthreadpool.h.
|
private |
Definition at line 99 of file cbthreadpool.h.
Referenced by cbThreadPool::CountedPtr< wxSemaphore >::operator=().
|
private |
Definition at line 98 of file cbthreadpool.h.
Referenced by cbThreadPool::CountedPtr< wxSemaphore >::operator=().