#include <TestDoubleFixedMemoryPoolFactory.h>
◆ TestDoubleFixedMemoryPool()
TestDoubleOSWrapper::TestDoubleFixedMemoryPool::TestDoubleFixedMemoryPool |
( |
| ) |
|
|
inline |
◆ ~TestDoubleFixedMemoryPool()
virtual TestDoubleOSWrapper::TestDoubleFixedMemoryPool::~TestDoubleFixedMemoryPool |
( |
| ) |
|
|
inlinevirtual |
◆ allocate()
virtual void * TestDoubleOSWrapper::TestDoubleFixedMemoryPool::allocate |
( |
| ) |
|
|
inlinevirtual |
Allocate a block from this FixedMemoryPool.
- Returns
- If free blocks exist in the memory pool then returns a pointer of allocated block, else returns null pointer
Implements OSWrapper::FixedMemoryPool.
◆ deallocate()
virtual void TestDoubleOSWrapper::TestDoubleFixedMemoryPool::deallocate |
( |
void * |
p | ) |
|
|
inlinevirtual |
Release the allocated block.
- Parameters
-
p | Pointer of allocated block |
- Note
- If p is null pointer, do nothing.
Implements OSWrapper::FixedMemoryPool.
◆ getBlockSize()
virtual std::size_t TestDoubleOSWrapper::TestDoubleFixedMemoryPool::getBlockSize |
( |
| ) |
const |
|
inlinevirtual |
◆ setCreateArgs()
void TestDoubleOSWrapper::TestDoubleFixedMemoryPool::setCreateArgs |
( |
std::size_t |
blockSize, |
|
|
std::size_t |
memoryPoolSize, |
|
|
void * |
memoryPoolAddress |
|
) |
| |
|
inline |
◆ m_blockSize
std::size_t TestDoubleOSWrapper::TestDoubleFixedMemoryPool::m_blockSize |
|
protected |
◆ m_memoryPoolAddress
void* TestDoubleOSWrapper::TestDoubleFixedMemoryPool::m_memoryPoolAddress |
|
protected |
◆ m_memoryPoolSize
std::size_t TestDoubleOSWrapper::TestDoubleFixedMemoryPool::m_memoryPoolSize |
|
protected |
The documentation for this class was generated from the following file: