![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Shared ownership intrusive pointer. More...
#include <shared_ptr.h>
Public Member Functions | |
SharedPtr () | |
Create empty shared pointer. More... | |
SharedPtr (T *ptr) | |
Create shared pointer from raw pointer. More... | |
SharedPtr (const SharedPtr &other) | |
Create shared pointer from shared pointer of the same type. More... | |
template<class TT > | |
SharedPtr (const SharedPtr< TT, Ownership > &other) | |
Create shared pointer from shared pointer of another type. More... | |
~SharedPtr () | |
Destroy shared pointer. More... | |
SharedPtr & | operator= (const SharedPtr &other) |
Reset shared pointer and attach it to another object. More... | |
void | reset (T *ptr=NULL) |
Reset shared pointer and attach it to another object. More... | |
T * | get () const |
Get underlying pointer. More... | |
T * | operator-> () const |
Get underlying pointer. More... | |
T & | operator* () const |
Get underlying reference. More... | |
operator const struct unspecified_bool * () const | |
Convert to bool. More... | |
Shared ownership intrusive pointer.
T | defines pointee type. It may be const. |
Ownership | defines methods to increase and decrease the reference counter embedded into object. If RefCntOwnership is used, T should inherit RefCnt. |
Definition at line 28 of file shared_ptr.h.
|
inline |
Create empty shared pointer.
Definition at line 33 of file shared_ptr.h.
|
inline |
Create shared pointer from raw pointer.
Definition at line 40 of file shared_ptr.h.
|
inline |
Create shared pointer from shared pointer of the same type.
Definition at line 48 of file shared_ptr.h.
|
inline |
Create shared pointer from shared pointer of another type.
Definition at line 58 of file shared_ptr.h.
|
inline |
Destroy shared pointer.
Definition at line 64 of file shared_ptr.h.
|
inline |
Get underlying pointer.
Definition at line 84 of file shared_ptr.h.
|
inline |
Convert to bool.
Definition at line 102 of file shared_ptr.h.
|
inline |
Get underlying reference.
Definition at line 94 of file shared_ptr.h.
|
inline |
Get underlying pointer.
Definition at line 89 of file shared_ptr.h.
|
inline |
Reset shared pointer and attach it to another object.
Definition at line 69 of file shared_ptr.h.
|
inline |
Reset shared pointer and attach it to another object.
Definition at line 75 of file shared_ptr.h.