F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
MemoryInterface.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Interfaces/MemoryInterface.hpp
3 // \brief pure-virtual interface implemented by Os::Memory implementations
4 // ======================================================================
5 #ifndef OS_INTERFACES_MEMORYINTERFACE_HPP_
6 #define OS_INTERFACES_MEMORYINTERFACE_HPP_
7 
9 
10 namespace Os {
11 
14  public:
16  MemoryInterface() = default;
18  virtual ~MemoryInterface() = default;
19 
21  MemoryInterface(const MemoryInterface& other) = delete; // NO_CODESONAR (cpp:S3657)
22 
24  virtual MemoryInterface& operator=(const MemoryInterface& other) = delete;
25 
30  virtual Status _getUsage(Usage& memory_usage) = 0;
31 
34  virtual MemoryHandle* getHandle() = 0;
35 };
36 
37 } // namespace Os
38 
39 #endif // OS_INTERFACES_MEMORYINTERFACE_HPP_
types and constants shared by users of Os::Memory and by its implementations
virtual MemoryInterface & operator=(const MemoryInterface &other)=delete
assignment operator is forbidden
MemoryInterface()=default
Default constructor.
virtual MemoryHandle * getHandle()=0
return the underlying memory handle (implementation specific).
interface for memory implementation
Status
Generic OK/ERROR status.
Definition: Os.hpp:26
virtual Status _getUsage(Usage &memory_usage)=0
get system memory usage
Memory variable handle parent.
Generic used/total struct.
Definition: Os.hpp:32
virtual ~MemoryInterface()=default
Default destructor.