F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
MemAllocator.hpp
Go to the documentation of this file.
1
16
#ifndef TYPES_MEMALLOCATOR_HPP_
17
#define TYPES_MEMALLOCATOR_HPP_
18
19
#include <
FpConfig.hpp
>
20
44
namespace
Fw
{
45
46
class
MemAllocator
{
47
public
:
49
55
virtual
void
*
allocate
(
56
const
NATIVE_UINT_TYPE
identifier,
57
NATIVE_UINT_TYPE
&size,
58
bool
& recoverable)=0;
60
64
virtual
void
deallocate
(
65
const
NATIVE_UINT_TYPE
identifier,
66
void
* ptr)=0;
67
protected
:
68
MemAllocator
();
69
virtual
~MemAllocator
();
70
private
:
71
MemAllocator
(
MemAllocator
&);
72
MemAllocator
(
MemAllocator
*);
73
};
74
75
}
/* namespace Fw */
76
77
#endif
/* TYPES_MEMALLOCATOR_HPP_ */
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Fw::MemAllocator
Definition
MemAllocator.hpp:46
Fw::MemAllocator::allocate
virtual void * allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable)=0
Allocate memory.
Fw::MemAllocator::deallocate
virtual void deallocate(const NATIVE_UINT_TYPE identifier, void *ptr)=0
Deallocate memory.
Fw::MemAllocator::~MemAllocator
virtual ~MemAllocator()
Definition
MemAllocator.cpp:20
Fw::MemAllocator::MemAllocator
MemAllocator()
Definition
MemAllocator.cpp:17
Fw
Definition
Buffer.cpp:21
Fw
Types
MemAllocator.hpp
Generated by
1.9.7