LMMS
Loading...
Searching...
No Matches
zyncarla::DummyAllocator Class Reference

the dummy allocator, which does not allow any allocation More...

#include <Allocator.h>

Inheritance diagram for zyncarla::DummyAllocator:
zyncarla::Allocator

Public Member Functions

voidalloc_mem (size_t)
void dealloc_mem (void *)
void addMemory (void *, size_t)
bool lowMemory (unsigned, size_t) const
 Allocator (void)
 Allocator (const Allocator &)=delete
Public Member Functions inherited from zyncarla::Allocator
 Allocator (void)
 Allocator (const Allocator &)=delete
virtual ~Allocator (void)
template<typename T, typename... Ts>
T * alloc (Ts &&... ts)
template<typename T, typename... Ts>
T * valloc (size_t len, Ts &&... ts)
template<typename T>
void dealloc (T *&t)
template<typename T>
void devalloc (T *&t)
template<typename T>
void devalloc (size_t elms, T *&t)
void beginTransaction ()
void endTransaction ()
bool memFree (void *pool) const
int memPools () const
int freePools () const
unsigned long long totalAlloced () const

Private Member Functions

void not_allowed () const

Additional Inherited Members

Public Attributes inherited from zyncarla::Allocator
struct AllocatorImplimpl

Detailed Description

the dummy allocator, which does not allow any allocation

Member Function Documentation

◆ addMemory()

void zyncarla::DummyAllocator::addMemory ( void * ,
size_t  )
inlinevirtual

Implements zyncarla::Allocator.

◆ alloc_mem()

void * zyncarla::DummyAllocator::alloc_mem ( size_t )
inlinevirtual

Implements zyncarla::Allocator.

◆ Allocator() [1/2]

zyncarla::Allocator::Allocator ( const Allocator & )
delete

◆ Allocator() [2/2]

◆ dealloc_mem()

void zyncarla::DummyAllocator::dealloc_mem ( void * )
inlinevirtual

Implements zyncarla::Allocator.

◆ lowMemory()

bool zyncarla::DummyAllocator::lowMemory ( unsigned ,
size_t  ) const
inlinevirtual

Implements zyncarla::Allocator.

◆ not_allowed()

void zyncarla::DummyAllocator::not_allowed ( ) const
inlineprivate

The documentation for this class was generated from the following file: