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