F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
MallocAllocator.hpp
Go to the documentation of this file.
1 
13 #ifndef TYPES_MALLOCALLOCATOR_HPP_
14 #define TYPES_MALLOCALLOCATOR_HPP_
15 
17 
18 namespace Fw {
19 
29 class MallocAllocator : public MemAllocator {
30  public:
32  virtual ~MallocAllocator();
34 
40  void* allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE& size, bool& recoverable);
42 
46  void deallocate(const NATIVE_UINT_TYPE identifier, void* ptr);
47 };
48 
49 } /* namespace Fw */
50 
51 #endif /* TYPES_MALLOCALLOCATOR_HPP_ */
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:56
Defines a base class for a memory allocator for classes.
void * allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable)
Allocate memory.
void deallocate(const NATIVE_UINT_TYPE identifier, void *ptr)
Deallocate memory.