F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Types/MallocAllocator.hpp>
Public Member Functions | |
MallocAllocator () | |
virtual | ~MallocAllocator () |
void * | allocate (const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable) |
Allocate memory. More... | |
void | deallocate (const NATIVE_UINT_TYPE identifier, void *ptr) |
Deallocate memory. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::MemAllocator | |
MemAllocator () | |
virtual | ~MemAllocator () |
This class is an implementation of the MemAllocator base class. It uses the heap as the memory source.
Since it is heap space, the identifier is unused, and memory is never recoverable.
Definition at line 29 of file MallocAllocator.hpp.
Fw::MallocAllocator::MallocAllocator | ( | ) |
Definition at line 18 of file MallocAllocator.cpp.
|
virtual |
Definition at line 20 of file MallocAllocator.cpp.
|
virtual |
Allocate memory.
identifier | the memory segment identifier (not used) |
size | the requested size (not changed) |
recoverable | - flag to indicate the memory could be recoverable (always set to false) |
Implements Fw::MemAllocator.
Definition at line 22 of file MallocAllocator.cpp.
|
virtual |
Deallocate memory.
identifier | the memory segment identifier (not used) |
ptr | the pointer to memory returned by allocate() |
Implements Fw::MemAllocator.
Definition at line 33 of file MallocAllocator.cpp.