HomeWaterLeaksDetection
|
#include <FreeMemoryMeasurement.h>
Public Member Functions | |
const String | getRow (int row) const override |
Returns the content of the row given as a parameter. More... | |
const String | getHTMLData (const int id) const override |
Since this class is registered as a source of data for the HTML content, it needs return the appropriate value according to the id given as a parameter. More... | |
Static Public Member Functions | |
static FreeMemoryMeasurement * | getInstance () |
Returns the instance of the class. More... | |
Private Member Functions | |
FreeMemoryMeasurement () | |
Constructor of the class. More... | |
FreeMemoryMeasurement (FreeMemoryMeasurement const &) | |
Copy constructor of the class. More... | |
FreeMemoryMeasurement & | operator= (FreeMemoryMeasurement const &) |
Assignment operator of the class. More... | |
int | getFreeRAM () const |
Return the amount of RAM currently being used. More... | |
Private Attributes | |
std::map< int, String(*)(const FreeMemoryMeasurement &freeMemoryMeasurement)> | htmlData |
A map of different values (keys) and their associated functions which returns the appropriate values. More... | |
Static Private Attributes | |
static FreeMemoryMeasurement * | instance = NULL |
the instance of the class More... | |
Friends | |
String | HTML_freeRAM (const FreeMemoryMeasurement &freeMemoryMeasurement) |
Associated function for returing amount of memory being used at the moment. More... | |
Additional Inherited Members | |
![]() | |
static const String | UNDEFINED_DATA = String("UNDEFINED") |
string "UNDEFINED" More... | |
This class provides information about the current use of the the SRAM memory. The particular value depends on the moment the method is called as the system might be performing different memory-consuming tasks. This information is used as an indication what the device is not running out of memory.
Definition at line 48 of file FreeMemoryMeasurement.h.
|
private |
Constructor of the class.
Definition at line 9 of file FreeMemoryMeasurement.cpp.
References HTML_freeRAM, and htmlData.
Referenced by getInstance().
|
inlineprivate |
|
private |
Return the amount of RAM currently being used.
Definition at line 21 of file FreeMemoryMeasurement.cpp.
References __brkval.
|
overridevirtual |
Since this class is registered as a source of data for the HTML content, it needs return the appropriate value according to the id given as a parameter.
id | - the id of the piece of data |
Implements HTMLDataSource.
|
static |
Returns the instance of the class.
If the instance has not been created, it will create it and then return it.
Definition at line 15 of file FreeMemoryMeasurement.cpp.
References FreeMemoryMeasurement(), and instance.
Referenced by setup().
|
overridevirtual |
Returns the content of the row given as a parameter.
This class represents one page on the LCD display. Each of the 4 rows has different content identified by the number of the row.
row | number of the row |
Implements IDisplayable.
|
inlineprivate |
Assignment operator of the class.
Definition at line 80 of file FreeMemoryMeasurement.h.
|
friend |
Associated function for returing amount of memory being used at the moment.
freeMemoryMeasurement | - the instance of the FreeMemoryMeasurement class |
Referenced by FreeMemoryMeasurement().
|
private |
A map of different values (keys) and their associated functions which returns the appropriate values.
Definition at line 125 of file FreeMemoryMeasurement.h.
Referenced by FreeMemoryMeasurement().
|
staticprivate |
the instance of the class
Definition at line 69 of file FreeMemoryMeasurement.h.
Referenced by getInstance().