F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
MmapAllocator.hpp
Go to the documentation of this file.
1 
13 #ifndef TYPES_MMAPALLOCATOR_HPP_
14 #define TYPES_MMAPALLOCATOR_HPP_
15 
17 
18 namespace Fw {
19 
22 class MmapAllocator : public MemAllocator {
23  public:
26  MmapAllocator();
28  virtual ~MmapAllocator();
29 
34  void* allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE& size, bool& recoverable);
35 
39  void deallocate(const NATIVE_UINT_TYPE identifier, void* ptr);
40 
41  private:
42  NATIVE_UINT_TYPE m_length;
43 };
44 
45 } /* namespace Fw */
46 
47 #endif /* TYPES_MMAPALLOCATOR_HPP_ */
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:52
Defines a base class for a memory allocator for classes.
void deallocate(const NATIVE_UINT_TYPE identifier, void *ptr)
virtual ~MmapAllocator()
Destructor with no arguments.
void * allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable)