13#ifndef ML_MEMORY_INFO_H
14#define ML_MEMORY_INFO_H
50 return _amountOfPhysicalMemoryInMB;
58 return _availableMemoryInMB;
64 unsigned int _amountOfPhysicalMemoryInMB = 0;
65 unsigned int _availableMemoryInMB = 0;
Singleton class that provides hardware specific information.
static MemoryInfo & getInstance()
Returns the single existing object of this class.
MemoryInfo()
This constructor must not be called from anywhere else but the getInstance() method (which does call ...
unsigned int getAvailableMemoryInMB() const
Returns the available amount of memory in MB.
unsigned int getTotalPhysicalMemoryInMB() const
Returns the total amount of physical memory in MB.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_UTILS_EXPORT
Defines platform dependent DLL export macro for mlUtils.