#include <TemporalBuffer.h>
Inheritance diagram for clawsoft::TemporalBuffer:
Public Methods | |
TemporalBuffer () | |
Default constructor, this will initialize the buffer memory address to 0x0000 and also the timeout. | |
const char * | getClassName () |
Returns the name of the current class. | |
Static Public Methods | |
int | installedCPUs () |
This will return how many CPUs are installed in the system. | |
double | cpuSpeed () |
This will return the CPU speed in megahertz. | |
int | totalMemory () |
Will return the total amount of system memory. | |
int | freeMemory () |
Will return the total amount of free system memory. | |
void | usleep (Uint32 usec) |
Will freeze the software for usec microseconds. | |
Data Fields | |
void * | buffer |
This is the memory buffer as intended to be. | |
Protected Methods | |
void | setClassName (const char *n) |
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging. | |
Protected Attributes | |
Uint32 | _elapsed |
This variable holds current elapsed time since the buffer was allocated. | |
Uint32 | _timeout |
Live timeout in seconds, after this period expires all memory allocated for this buffer will be released. |
|
Default constructor, this will initialize the buffer memory address to 0x0000 and also the timeout.
|
|
This will return the CPU speed in megahertz.
|
|
Will return the total amount of free system memory.
|
|
Returns the name of the current class.
|
|
This will return how many CPUs are installed in the system.
|
|
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.
|
|
Will return the total amount of system memory.
|
|
Will freeze the software for usec microseconds.
|
|
This variable holds current elapsed time since the buffer was allocated.
|
|
Live timeout in seconds, after this period expires all memory allocated for this buffer will be released.
|
|
This is the memory buffer as intended to be.
|
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: