arduino-audio-tools
Loading...
Searching...
No Matches
Allocator Class Reference

Memory allocateator which uses malloc. More...

#include <Allocator.h>

Public Member Functions

virtual void * allocate (size_t size)
 Allocates memory.
template<class T>
T * create ()
template<class T>
T * createArray (int len)
virtual void free (void *memory)
 frees memory
template<class T>
void remove (T *obj)
 deletes an object
template<class T>
void removeArray (T *obj, int len)

Protected Member Functions

virtual void * do_allocate (size_t size)

Detailed Description

Memory allocateator which uses malloc.

Author
Phil Schatzmann

Member Function Documentation

◆ allocate()

virtual void * allocate ( size_t size)
inlinevirtual

Allocates memory.

◆ create()

template<class T>
T * create ( )
inline

◆ createArray()

template<class T>
T * createArray ( int len)
inline

◆ do_allocate()

virtual void * do_allocate ( size_t size)
inlineprotectedvirtual

◆ free()

virtual void free ( void * memory)
inlinevirtual

frees memory

◆ remove()

template<class T>
void remove ( T * obj)
inline

deletes an object

◆ removeArray()

template<class T>
void removeArray ( T * obj,
int len )
inline

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