![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Allocation policy for objects (de)allocated using IAllocator. More...
#include <allocation_policy.h>
Public Member Functions | |
StandardAllocation () | |
Initialize in invalid state. Such instance wont be usable. | |
StandardAllocation (IAllocator &allocator) | |
Initialize with given allocator. Such instance will use allocator to destroy objects. | |
template<class T > | |
void | destroy (T &object) |
Destroy object and deallocate its memory. | |
Protected Member Functions | |
IAllocator & | allocator () const |
Get allocator. | |
Allocation policy for objects (de)allocated using IAllocator.
Definition at line 22 of file allocation_policy.h.
|
inline |
Initialize in invalid state. Such instance wont be usable.
Definition at line 26 of file allocation_policy.h.
|
inline |
Initialize with given allocator. Such instance will use allocator to destroy objects.
Definition at line 32 of file allocation_policy.h.
|
inlineprotected |
Get allocator.
Definition at line 46 of file allocation_policy.h.
|
inline |
Destroy object and deallocate its memory.
Definition at line 37 of file allocation_policy.h.