![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <buffer.h>
Public Member Functions | |
Buffer (BufferFactory< T > &factory) | |
Initialize empty buffer. | |
size_t | size () const |
Get maximum number of elements. | |
T * | data () |
Get buffer data. | |
![]() | |
RefCounted () | |
Initialization with default allocation policy. | |
RefCounted (const FactoryAllocation< BufferFactory< T > > &policy) | |
Initialization with arbitrary allocation policy. | |
long | getref () const |
Get reference counter. | |
void | incref () const |
Increment reference counter. | |
void | decref () const |
Decrement reference counter. | |
Static Public Member Functions | |
static Buffer * | container_of (void *data) |
Get pointer to buffer from the pointer to its data. | |
Additional Inherited Members | |
![]() | |
BufferFactory< T > & | factory () const |
Get factory. | |
FactoryAllocation () | |
Initialize in invalid state. Such instance wont be usable. | |
FactoryAllocation (BufferFactory< T > &factory) | |
Initialize with given factory. Such instance will use factory to destroy objects. | |
void | destroy (T &object) |
Destroy object and deallocate its memory. | |
|
inlineexplicit |
|
inlinestatic |
|
inline |
|
inline |