#define FW_HANDLE_ALIGNMENT
Alignment of handle storage.
U8 MemoryHandleStorage[FW_MEMORY_HANDLE_MAX_SIZE]
Memory variable handle parent.
Memory()
default constructor
Memory(const MemoryInterface *other)=delete
copy constructor is forbidden
Memory(const MemoryInterface &other)=delete
copy constructor is forbidden
MemoryInterface & operator=(const MemoryInterface &other) override=delete
assignment operator is forbidden
static Status getUsage(Usage &memory)
get system memory usage
static void init()
initialize the singleton
~Memory() final
default virtual destructor
MemoryHandle * getHandle() override
return the underlying memory handle (implementation specific).
Status _getUsage(Usage &memory_usage) override
get system memory usage
static Memory & getSingleton()
return singleton
interface for memory implementation
virtual MemoryHandle * getHandle()=0
return the underlying memory handle (implementation specific).
virtual Status _getUsage(Usage &memory_usage)=0
get system memory usage
MemoryInterface(const MemoryInterface &other)=delete
copy constructor is forbidden
virtual MemoryInterface & operator=(const MemoryInterface &other)=delete
assignment operator is forbidden
virtual ~MemoryInterface()=default
Default destructor.
MemoryInterface()=default
Default constructor.
static MemoryInterface * getDelegate(MemoryHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
Status
Generic OK/ERROR status.
Generic used/total struct.