CppELib 1.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StdCppOSWrapper::StdCppVariableMemoryPool Class Reference

Public Member Functions

 StdCppVariableMemoryPool ()
 
 ~StdCppVariableMemoryPool ()
 
void * allocate (std::size_t size)
 Allocate a memory from this VariableMemoryPool.
 
void deallocate (void *p)
 Release the allocated memory.
 

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

◆ StdCppVariableMemoryPool()

StdCppOSWrapper::StdCppVariableMemoryPool::StdCppVariableMemoryPool ( )
inline

◆ ~StdCppVariableMemoryPool()

StdCppOSWrapper::StdCppVariableMemoryPool::~StdCppVariableMemoryPool ( )
inline

Member Function Documentation

◆ allocate()

void * StdCppOSWrapper::StdCppVariableMemoryPool::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()

void StdCppOSWrapper::StdCppVariableMemoryPool::deallocate ( void *  p)
inlinevirtual

Release the allocated memory.

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

Implements OSWrapper::VariableMemoryPool.


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