![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Optionally constructed object. More...
#include <roc_core/optional.h>

Public Member Functions | |
| void | reset (T *ptr=NULL) |
| Set pointer to the newly created object, destroy old pointed object if set. | |
| T * | get () const |
| Get underlying object. | |
| T * | operator-> () const |
| Get underlying object. | |
| T & | operator* () const |
| Get underlying reference. | |
| operator const struct unspecified_bool * () const | |
| Convert to bool. | |
| void * | unallocated_memory () |
| Get object memory. | |
Optionally constructed object.
Definition at line 25 of file optional.h.
|
inline |
Definition at line 27 of file optional.h.
|
inline |
Definition at line 31 of file optional.h.
|
inline |
Get underlying object.
Definition at line 51 of file optional.h.
|
inline |
Convert to bool.
Definition at line 72 of file optional.h.
|
inline |
Get underlying reference.
Definition at line 64 of file optional.h.
|
inline |
Get underlying object.
Definition at line 56 of file optional.h.
|
inline |
Set pointer to the newly created object, destroy old pointed object if set.
ptr should be returned by associated placement new. Definition at line 40 of file optional.h.
|
inline |
Get object memory.
Definition at line 79 of file optional.h.