F´ Flight Software - C/C++ Documentation
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 
36  void* allocate(const FwEnumStoreType identifier,
37  FwSizeType& size,
38  bool& recoverable,
39  FwSizeType alignment = alignof(std::max_align_t)) override;
40 
44  void deallocate(const FwEnumStoreType identifier, void* ptr) override;
45 
46  private:
47  FwSizeType m_length;
48 };
49 
50 } /* namespace Fw */
51 
52 #endif /* TYPES_MMAPALLOCATOR_HPP_ */
void * allocate(const FwEnumStoreType identifier, FwSizeType &size, bool &recoverable, FwSizeType alignment=alignof(std::max_align_t)) override
virtual ~MmapAllocator()
Destructor with no arguments.
PlatformSizeType FwSizeType
I32 FwEnumStoreType
Memory Allocation base class.
Defines a base class for a memory allocator for classes.
Implementation of malloc based allocator.
void deallocate(const FwEnumStoreType identifier, void *ptr) override