F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Memory.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title Os/Darwin/Memory.hpp
3// \brief Darwin implementation for Os::Memory, header and test definitions
4// ======================================================================
5#include <Os/Memory.hpp>
6#ifndef OS_Darwin_Memory_HPP
7#define OS_Darwin_Memory_HPP
8
9namespace Os {
10namespace Darwin {
11namespace Memory {
12
16};
17
23 public:
26 DarwinMemory() = default;
27
29 DarwinMemory(const DarwinMemory& other) = delete;
30
32 MemoryInterface& operator=(const MemoryInterface& other) override = delete;
33
36 ~DarwinMemory() override = default;
37
38 // ------------------------------------
39 // Functions overrides
40 // ------------------------------------
41 public:
42
49 Status _getUsage(Os::Memory::Usage& memory_usage) override;
50
58 MemoryHandle *getHandle() override;
59 private:
61 DarwinMemoryHandle m_handle;
62};
63} // namespace Memory
64} // namespace Darwin
65} // namespace Os
66
67#endif // OS_Darwin_Memory_HPP
stub implementation of Os::MemoryInterface
Definition Memory.hpp:22
DarwinMemory()=default
constructor
Status _getUsage(Os::Memory::Usage &memory_usage) override
get system memory usage
Definition Memory.cpp:49
DarwinMemory(const DarwinMemory &other)=delete
copy constructor
MemoryInterface & operator=(const MemoryInterface &other) override=delete
default copy assignment
MemoryHandle * getHandle() override
returns the raw console handle
Definition Memory.cpp:60
~DarwinMemory() override=default
destructor
Memory variable handle parent.
Definition Memory.hpp:13
interface for memory implementation
Definition Memory.hpp:16
Status
Generic OK/ERROR status.
Definition Os.hpp:25
Generic used/total struct.
Definition Os.hpp:31