F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
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.
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
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition: BasicTypes.hpp:30
Fw::MemAllocator
Definition: MemAllocator.hpp:44
BasicTypes.hpp
Declares ISF basic types.
Fw
Definition: BufferGetPortAc.cpp:6