F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
memory implementation More...
#include <Os/Memory.hpp>
Public Member Functions | |
Memory () | |
default constructor More... | |
~Memory () final | |
default virtual destructor More... | |
Memory (const MemoryInterface &other)=delete | |
copy constructor is forbidden More... | |
Memory (const MemoryInterface *other)=delete | |
copy constructor is forbidden More... | |
MemoryInterface & | operator= (const MemoryInterface &other) override=delete |
assignment operator is forbidden More... | |
Status | _getUsage (Usage &memory_usage) override |
get system memory usage More... | |
MemoryHandle * | getHandle () override |
return the underlying memory handle (implementation specific). More... | |
Public Member Functions inherited from Os::MemoryInterface | |
MemoryInterface ()=default | |
Default constructor. More... | |
virtual | ~MemoryInterface ()=default |
Default destructor. More... | |
MemoryInterface (const MemoryInterface &other)=delete | |
copy constructor is forbidden More... | |
Static Public Member Functions | |
static void | init () |
initialize the singleton More... | |
static Memory & | getSingleton () |
return singleton More... | |
static Status | getUsage (Usage &memory) |
get system memory usage More... | |
Static Public Member Functions inherited from Os::MemoryInterface | |
static MemoryInterface * | getDelegate (MemoryHandleStorage &aligned_new_memory) |
provide a pointer to a Mutex delegate object More... | |
Additional Inherited Members | |
Public Types inherited from Os::MemoryInterface | |
using | Status = Os::Generic::Status |
using | Usage = Os::Generic::UsedTotal |
memory implementation
Definition at line 47 of file Memory.hpp.
Os::Memory::Memory | ( | ) |
default constructor
Definition at line 10 of file Memory.cpp.
|
final |
default virtual destructor
Definition at line 12 of file Memory.cpp.
|
delete |
copy constructor is forbidden
|
delete |
copy constructor is forbidden
|
overridevirtual |
get system memory usage
This method delegates to the underlying implementation.
memory_usage | (output) data structure used to store memory usage |
Implements Os::MemoryInterface.
Definition at line 25 of file Memory.cpp.
|
overridevirtual |
return the underlying memory handle (implementation specific).
Implements Os::MemoryInterface.
Definition at line 34 of file Memory.cpp.
|
static |
return singleton
Definition at line 20 of file Memory.cpp.
|
static |
get system memory usage
This method wraps delegates to the underlying implementation.
memory_usage | (output) data structure used to store memory usage |
Definition at line 30 of file Memory.cpp.
|
static |
initialize the singleton
Definition at line 16 of file Memory.cpp.
|
overridevirtualdelete |
assignment operator is forbidden
Reimplemented from Os::MemoryInterface.