Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <FreeMemReportControl.h>
Inheritance diagram for FreeMemReportControl:
Definition at line 12 of file FreeMemReportControl.h.
Public Member Functions | |
virtual void | DoStart () |
By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods. | |
virtual void | DoStop () |
By default, subtracts from the reference counter, and deletes if zero; Note you should still call this when you override this; Warning call this at the end of your DoStop(), not beginning (it might delete this ). | |
virtual void | processEvent (const EventBase &e) |
By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing. | |
virtual std::string | getName () const |
Identifies the behavior in menus and such. | |
virtual void | refresh () |
called when the child has died and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed | |
void | report () |
reports size of free memory - if this is below low_mem, also generates a warning | |
void | resetTimerFreq () |
resets timer delays | |
Contructors/Destructors | |
contructor | |
FreeMemReportControl () | |
FreeMemReportControl (const std::string &n) | |
FreeMemReportControl (const std::string &n, const std::string &d) | |
virtual | ~FreeMemReportControl () |
destructor | |
Static Public Member Functions | |
size_t | freeMem () |
returns the size of the free memory | |
Protected Member Functions | |
void | init () |
builds the submenus | |
Protected Attributes | |
int | report_freq |
how often to report memory size (in milliseconds - negative turns off, 0 is as often as possible) | |
unsigned int | low_mem |
threshold to trigger low memory warning (in kilobytes) | |
unsigned int | monitor_freq |
how often to check for low memory (in milliseconds - -1U turns off, 0 is as often as possible) | |
bool | isWarning |
true we already know we're below threshold |
|
Definition at line 16 of file FreeMemReportControl.h. |
|
Definition at line 17 of file FreeMemReportControl.h. |
|
Definition at line 18 of file FreeMemReportControl.h. |
|
destructor
Definition at line 19 of file FreeMemReportControl.h. |
|
By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.
Reimplemented from BehaviorBase. Definition at line 22 of file FreeMemReportControl.h. Referenced by StartupBehavior::SetupStatusReports(). |
|
By default, subtracts from the reference counter, and deletes if zero; Note you should still call this when you override this; Warning call this at the end of your DoStop(), not beginning (it might
Reimplemented from BehaviorBase. Definition at line 27 of file FreeMemReportControl.h. Referenced by ~FreeMemReportControl(). |
|
returns the size of the free memory
Definition at line 46 of file FreeMemReportControl.cc. Referenced by processEvent(), refresh(), and report(). |
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 35 of file FreeMemReportControl.h. |
|
builds the submenus
Definition at line 50 of file FreeMemReportControl.h. Referenced by FreeMemReportControl(). |
|
By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.
Reimplemented from BehaviorBase. Definition at line 5 of file FreeMemReportControl.cc. |
|
called when the child has died and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
Reimplemented from ControlBase. Definition at line 26 of file FreeMemReportControl.cc. |
|
reports size of free memory - if this is below low_mem, also generates a warning
Definition at line 36 of file FreeMemReportControl.cc. Referenced by processEvent(), and refresh(). |
|
resets timer delays
Definition at line 53 of file FreeMemReportControl.cc. |
|
true we already know we're below threshold
Definition at line 61 of file FreeMemReportControl.h. Referenced by DoStop(), FreeMemReportControl(), processEvent(), and report(). |
|
threshold to trigger low memory warning (in kilobytes)
Definition at line 59 of file FreeMemReportControl.h. Referenced by FreeMemReportControl(), init(), processEvent(), and report(). |
|
how often to check for low memory (in milliseconds - -1U turns off, 0 is as often as possible)
Definition at line 60 of file FreeMemReportControl.h. Referenced by FreeMemReportControl(), init(), and resetTimerFreq(). |
|
how often to report memory size (in milliseconds - negative turns off, 0 is as often as possible)
Definition at line 58 of file FreeMemReportControl.h. Referenced by FreeMemReportControl(), init(), and resetTimerFreq(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:13 2004 by Doxygen 1.3.4 |