F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
MallocAllocator.hpp
Go to the documentation of this file.
1
13
#ifndef TYPES_MALLOCALLOCATOR_HPP_
14
#define TYPES_MALLOCALLOCATOR_HPP_
15
16
#include <
Fw/Types/MemAllocator.hpp
>
17
18
namespace
Fw
{
19
29
class
MallocAllocator
:
public
MemAllocator
{
30
public
:
31
MallocAllocator
();
32
virtual
~MallocAllocator
();
34
40
void
*
allocate
(
const
FwEnumStoreType
identifier,
FwSizeType
& size,
bool
& recoverable);
42
46
void
deallocate
(
const
FwEnumStoreType
identifier,
void
* ptr);
47
};
48
49
}
/* namespace Fw */
50
51
#endif
/* TYPES_MALLOCALLOCATOR_HPP_ */
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
FwEnumStoreType
I32 FwEnumStoreType
Definition:
FwEnumStoreTypeAliasAc.h:14
Fw::MallocAllocator::MallocAllocator
MallocAllocator()
Definition:
MallocAllocator.cpp:18
Fw::MallocAllocator::allocate
void * allocate(const FwEnumStoreType identifier, FwSizeType &size, bool &recoverable)
Allocate memory.
Definition:
MallocAllocator.cpp:22
Fw::MallocAllocator
Definition:
MallocAllocator.hpp:29
Fw::MallocAllocator::~MallocAllocator
virtual ~MallocAllocator()
Definition:
MallocAllocator.cpp:20
Fw::MemAllocator
Definition:
MemAllocator.hpp:46
MemAllocator.hpp
Defines a base class for a memory allocator for classes.
Fw
Definition:
FppConstantsAc.hpp:121
Fw::MallocAllocator::deallocate
void deallocate(const FwEnumStoreType identifier, void *ptr)
Deallocate memory.
Definition:
MallocAllocator.cpp:33
Fw
Types
MallocAllocator.hpp
Generated by
1.8.14