F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
MemAllocator.hpp
Go to the documentation of this file.
1
16
#ifndef TYPES_MEMALLOCATOR_HPP_
17
#define TYPES_MEMALLOCATOR_HPP_
18
19
#include <Fw/Types/BasicTypes.hpp>
20
42
namespace
Fw
{
43
44
class
MemAllocator
{
45
public
:
47
53
virtual
void
*
allocate
(
54
const
NATIVE_UINT_TYPE
identifier,
55
NATIVE_UINT_TYPE
&size,
56
bool
& recoverable)=0;
58
62
virtual
void
deallocate
(
63
const
NATIVE_UINT_TYPE
identifier,
64
void
* ptr)=0;
65
protected
:
66
MemAllocator
();
67
virtual
~MemAllocator
();
68
private
:
69
MemAllocator
(
MemAllocator
&);
70
MemAllocator
(
MemAllocator
*);
71
};
72
73
}
/* namespace Fw */
74
75
#endif
/* TYPES_MEMALLOCATOR_HPP_ */
Fw::MemAllocator::MemAllocator
MemAllocator()
Definition:
MemAllocator.cpp:17
Fw::MemAllocator::deallocate
virtual void deallocate(const NATIVE_UINT_TYPE identifier, void *ptr)=0
Deallocate memory.
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:28
Fw::MemAllocator::allocate
virtual void * allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable)=0
Allocate memory.
Fw::MemAllocator::~MemAllocator
virtual ~MemAllocator()
Definition:
MemAllocator.cpp:20
Fw::MemAllocator
Definition:
MemAllocator.hpp:44
Fw
Definition:
SerIds.hpp:20
Fw
Types
MemAllocator.hpp
Generated by
1.8.17