|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Unique ownrship pointer. More...
#include <unique_ptr.h>
Public Member Functions | |
| UniquePtr () | |
| Initialize null pointer. More... | |
| UniquePtr (T *ptr, Destroyer &destroyer) | |
| Initialize from a raw pointer. More... | |
| ~UniquePtr () | |
| Destroy object. More... | |
| void | reset () |
| Reset pointer to null. More... | |
| void | reset (T *new_ptr, Destroyer &new_destroyer) |
| Reset pointer to a new value. More... | |
| T * | release () |
| Get underlying pointer and pass ownership to the caller. 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... | |
Unique ownrship pointer.
| T | defines pointee type. It may be const. |
| Destroyer | is used to destroy the object. |
Definition at line 27 of file unique_ptr.h.
|
inline |
Initialize null pointer.
Definition at line 30 of file unique_ptr.h.
|
inline |
Initialize from a raw pointer.
Definition at line 36 of file unique_ptr.h.
|
inline |
Destroy object.
Definition at line 42 of file unique_ptr.h.
|
inline |
Get underlying pointer.
Definition at line 74 of file unique_ptr.h.
|
inline |
Convert to bool.
Definition at line 92 of file unique_ptr.h.
|
inline |
Get underlying reference.
Definition at line 84 of file unique_ptr.h.
|
inline |
Get underlying pointer.
Definition at line 79 of file unique_ptr.h.
|
inline |
Get underlying pointer and pass ownership to the caller.
Definition at line 63 of file unique_ptr.h.
|
inline |
Reset pointer to null.
Definition at line 47 of file unique_ptr.h.
|
inline |
Reset pointer to a new value.
Definition at line 54 of file unique_ptr.h.