Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

clawsoft::GarbageCollector Class Reference

#include <GarbageCollector.h>

Inheritance diagram for clawsoft::GarbageCollector:

Inheritance graph
[legend]
Collaboration diagram for clawsoft::GarbageCollector:

Collaboration graph
[legend]

Detailed Description

This the garbage collector base class, it is the basic object for temporary buffer collection an release.

Do not implement this class or any of other of its sub classes, THIS IS FOR INTERNAL USE ONLY!!!!

STATUS: READY TO TEST


Public Methods

 GarbageCollector ()
 `* Default constructor, this will initialize `* the garbage List `

void add (TemporalBuffer *a)
 Add a new memory object to be collected.

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.


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

List< TemporalBuffer * > * garbage
 This list holds the temporarybuffer objects to be collected when they reach their maximum time to live.


Constructor & Destructor Documentation

clawsoft::GarbageCollector::GarbageCollector  
 

`* Default constructor, this will initialize `* the garbage List `


Member Function Documentation

void clawsoft::GarbageCollector::add TemporalBuffer   a
 

Add a new memory object to be collected.

double clawsoft::System::cpuSpeed   [static, inherited]
 

This will return the CPU speed in megahertz.

int clawsoft::System::freeMemory   [static, inherited]
 

Will return the total amount of free system memory.

const char * clawsoft::Object::getClassName   [inherited]
 

Returns the name of the current class.

int clawsoft::System::installedCPUs   [static, inherited]
 

This will return how many CPUs are installed in the system.

void clawsoft::Object::setClassName const char *    n [protected, inherited]
 

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.

int clawsoft::System::totalMemory   [static, inherited]
 

Will return the total amount of system memory.

void clawsoft::System::usleep Uint32    usec [static, inherited]
 

Will freeze the software for usec microseconds.


Field Documentation

List<TemporalBuffer *>* clawsoft::GarbageCollector::garbage [protected]
 

This list holds the temporarybuffer objects to be collected when they reach their maximum time to live.


The documentation for this class was generated from the following files:

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo