Arduino DLNA Server
Public Member Functions | Protected Member Functions | List of all members
tiny_dlna::Allocator Class Reference

Memory allocateator which uses malloc. More...

#include <Allocator.h>

Inheritance diagram for tiny_dlna::Allocator:
Inheritance graph
[legend]

Public Member Functions

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

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* tiny_dlna::Allocator::allocate ( size_t  size)
inlinevirtual

Allocates memory.

◆ create()

template<class T >
T* tiny_dlna::Allocator::create ( )
inline

◆ createArray()

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

◆ do_allocate()

virtual void* tiny_dlna::Allocator::do_allocate ( size_t  size)
inlineprotectedvirtual

◆ free()

virtual void tiny_dlna::Allocator::free ( void *  memory)
inlinevirtual

frees memory

◆ remove()

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

deletes an object

◆ removeArray()

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

◆ stop()

void tiny_dlna::Allocator::stop ( )
inline

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