Memory allocateator which uses malloc.
More...
#include <Allocator.h>
|
| template<class T > |
| T * | create () |
| |
| template<class T > |
| void | remove (T *obj) |
| | deletes an object
|
| |
| template<class T > |
| T * | createArray (int len) |
| |
| template<class T > |
| void | removeArray (T *obj, int len) |
| |
| virtual void * | allocate (size_t size) |
| | Allocates memory.
|
| |
| void | stop () |
| |
| virtual void | free (void *memory) |
| | frees memory
|
| |
Memory allocateator which uses malloc.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ allocate()
| virtual void * tiny_dlna::Allocator::allocate |
( |
size_t |
size | ) |
|
|
inlinevirtual |
◆ 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 |
◆ remove()
template<class T >
| void tiny_dlna::Allocator::remove |
( |
T * |
obj | ) |
|
|
inline |
◆ 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: