![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Allocation policy for objects (de)allocated using custom functions. More...
#include <allocation_policy.h>
Public Member Functions | |
CustomAllocation () | |
Initialize in invalid state. Such instance wont be usable. | |
template<class T > | |
CustomAllocation (void(*destroy_func)(T *)) | |
Initialize with given function. Such instance will use function to destroy objects. | |
template<class T > | |
void | destroy (T &object) |
Destroy object and deallocate its memory. | |
Allocation policy for objects (de)allocated using custom functions.
Definition at line 94 of file allocation_policy.h.
|
inline |
Initialize in invalid state. Such instance wont be usable.
Definition at line 100 of file allocation_policy.h.
|
inline |
Initialize with given function. Such instance will use function to destroy objects.
Definition at line 107 of file allocation_policy.h.
|
inline |
Destroy object and deallocate its memory.
Definition at line 112 of file allocation_policy.h.