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/Linux/Memory.hpp
3// \brief Linux implementation for Os::Memory, header and test definitions
4// ======================================================================
5#include <Os/Memory.hpp>
6#ifndef OS_Linux_Memory_HPP
7#define OS_Linux_Memory_HPP
8
9namespace Os {
10namespace Linux {
11namespace Memory {
12
16};
17
23 public:
26 LinuxMemory() = default;
27
29 LinuxMemory(const LinuxMemory& other) = delete;
30
32 MemoryInterface& operator=(const MemoryInterface& other) override = delete;
33
36 ~LinuxMemory() 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 LinuxMemoryHandle m_handle;
62};
63} // namespace Memory
64} // namespace Linux
65} // namespace Os
66
67#endif // OS_Linux_Memory_HPP
stub implementation of Os::MemoryInterface
Definition Memory.hpp:22
MemoryHandle * getHandle() override
returns the raw console handle
Definition Memory.cpp:30
MemoryInterface & operator=(const MemoryInterface &other) override=delete
default copy assignment
~LinuxMemory() override=default
destructor
LinuxMemory(const LinuxMemory &other)=delete
copy constructor
LinuxMemory()=default
constructor
Status _getUsage(Os::Memory::Usage &memory_usage) override
get system memory usage
Definition Memory.cpp:14
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