|
VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
|
Stack based pool. More...
#include <TMemoryPoolStack.hpp>
Public Member Functions | |
| MemoryPoolStack (void *pool, Size size) | |
| void * | allocate (Size size) override |
| void | deallocate (void *ptr) override |
| void * | reallocate (void *ptr, size_t size) override |
Public Member Functions inherited from tklb::memory::MemoryPool | |
| MemoryPool (void *pool, Size size) | |
| Construct a pool from memory provided. More... | |
| ~MemoryPool () | |
| Size | getAllocated () const |
| Size | getTotalSize () const |
| void * | clearallocate (size_t num, size_t size) |
| Allocates space for num of structs with size size and clears the memory. More... | |
| template<class T , typename ... Args> | |
| T * | create (Args &&... args) |
| Acts like new. More... | |
| template<class T , typename ... Args> | |
| T * | createArray (size_t count, Args &&... args) |
| template<class T > | |
| void | dispose (T *ptr) |
| Acts like delete. More... | |
| template<class T > | |
| void | disposeArray (size_t count, T *ptr) |
| Acts like delete. More... | |
| void | deallocateAligned (void *ptr) |
| void * | allocateAligned (const Size size, const Size align=DEFAULT_ALIGN) |
| Allocate aligned if simd is enabled. More... | |
Additional Inherited Members | |
Protected Types inherited from tklb::memory::MemoryPool | |
| using | Size = uintptr_t |
| using | Byte = unsigned char |
| using | Mutex = SpinLock |
| using | Lock = LockGuard< Mutex > |
Protected Attributes inherited from tklb::memory::MemoryPool | |
| SharedPool & | mPool |
Static Protected Attributes inherited from tklb::memory::MemoryPool | |
| static constexpr Size | DEFAULT_ALIGN = xsimd::default_arch::alignment() |
Stack based pool.
Definition at line 11 of file TMemoryPoolStack.hpp.
|
inline |
Definition at line 13 of file TMemoryPoolStack.hpp.
|
inlineoverridevirtual |
Implements tklb::memory::MemoryPool.
Definition at line 22 of file TMemoryPoolStack.hpp.
|
inlineoverridevirtual |
Implements tklb::memory::MemoryPool.
Definition at line 85 of file TMemoryPoolStack.hpp.
|
inlineoverridevirtual |
Implements tklb::memory::MemoryPool.
Definition at line 119 of file TMemoryPoolStack.hpp.