|
CppELib 1.7.0
|
Abstract class that has functions of common RTOS's variable-size memory pool. More...
#include <VariableMemoryPool.h>
Public Member Functions | |
| virtual void * | allocate (std::size_t size)=0 |
| Allocate a memory from this VariableMemoryPool. | |
| virtual void | deallocate (void *p)=0 |
| Release the allocated memory. | |
Static Public Member Functions | |
| static VariableMemoryPool * | create (std::size_t memoryPoolSize, void *memoryPoolAddress=0) |
| Create a VariableMemoryPool object. | |
| static void | destroy (VariableMemoryPool *p) |
| Destroy a VariableMemoryPool object. | |
Protected Member Functions | |
| virtual | ~VariableMemoryPool () |
Abstract class that has functions of common RTOS's variable-size memory pool.
|
inlineprotectedvirtual |
|
pure virtual |
Allocate a memory from this VariableMemoryPool.
| size | Number of bytes of allocation |
Implemented in StdCppOSWrapper::StdCppVariableMemoryPool, and TestDoubleOSWrapper::TestDoubleVariableMemoryPool.
|
static |
Create a VariableMemoryPool object.
| memoryPoolSize | Number of bytes of memory pool |
| memoryPoolAddress | Memory pool address |
|
pure virtual |
Release the allocated memory.
| p | Pointer of allocated memory |
Implemented in StdCppOSWrapper::StdCppVariableMemoryPool, and TestDoubleOSWrapper::TestDoubleVariableMemoryPool.
|
static |
Destroy a VariableMemoryPool object.
| p | Pointer of VariableMemoryPool object created by VariableMemoryPool::create() |