CppELib 1.7.0
Loading...
Searching...
No Matches
TestDoubleOSWrapper::TestDoubleVariableMemoryPool Class Reference

#include <TestDoubleVariableMemoryPoolFactory.h>

Public Member Functions

 TestDoubleVariableMemoryPool ()
 
void setCreateArgs (std::size_t memoryPoolSize, void *memoryPoolAddress)
 
virtual ~TestDoubleVariableMemoryPool ()
 
virtual void * allocate (std::size_t size)
 Allocate a memory from this VariableMemoryPool.
 
virtual void deallocate (void *p)
 Release the allocated memory.
 

Protected Attributes

std::size_t m_memoryPoolSize
 
void * m_memoryPoolAddress
 

Additional Inherited Members

- Static Public Member Functions inherited from OSWrapper::VariableMemoryPool
static VariableMemoryPoolcreate (std::size_t memoryPoolSize, void *memoryPoolAddress=0)
 Create a VariableMemoryPool object.
 
static void destroy (VariableMemoryPool *p)
 Destroy a VariableMemoryPool object.
 
- Protected Member Functions inherited from OSWrapper::VariableMemoryPool
virtual ~VariableMemoryPool ()
 

Constructor & Destructor Documentation

◆ TestDoubleVariableMemoryPool()

TestDoubleOSWrapper::TestDoubleVariableMemoryPool::TestDoubleVariableMemoryPool ( )
inline

◆ ~TestDoubleVariableMemoryPool()

virtual TestDoubleOSWrapper::TestDoubleVariableMemoryPool::~TestDoubleVariableMemoryPool ( )
inlinevirtual

Member Function Documentation

◆ allocate()

virtual void * TestDoubleOSWrapper::TestDoubleVariableMemoryPool::allocate ( std::size_t  size)
inlinevirtual

Allocate a memory from this VariableMemoryPool.

Parameters
sizeNumber of bytes of allocation
Returns
If required free areas exist in the memory pool then returns a pointer of allocated memory, else returns null pointer

Implements OSWrapper::VariableMemoryPool.

◆ deallocate()

virtual void TestDoubleOSWrapper::TestDoubleVariableMemoryPool::deallocate ( void *  p)
inlinevirtual

Release the allocated memory.

Parameters
pPointer of allocated memory
Note
If p is null pointer, do nothing.

Implements OSWrapper::VariableMemoryPool.

◆ setCreateArgs()

void TestDoubleOSWrapper::TestDoubleVariableMemoryPool::setCreateArgs ( std::size_t  memoryPoolSize,
void *  memoryPoolAddress 
)
inline

Member Data Documentation

◆ m_memoryPoolAddress

void* TestDoubleOSWrapper::TestDoubleVariableMemoryPool::m_memoryPoolAddress
protected

◆ m_memoryPoolSize

std::size_t TestDoubleOSWrapper::TestDoubleVariableMemoryPool::m_memoryPoolSize
protected

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