Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Optionally constructed object. More...
#include <optional.h>
Public Member Functions | |
void | reset (T *ptr=NULL) |
Set pointer to the newly created object, destroy old pointed object if set. More... | |
T * | get () const |
Get underlying object. More... | |
T * | operator-> () const |
Get underlying object. More... | |
T & | operator* () const |
Get underlying reference. More... | |
operator const struct unspecified_bool * () const | |
Convert to bool. More... | |
void * | unallocated_memory () |
Get object memory. More... | |
Optionally constructed object.
Definition at line 25 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.