Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KJS::Collector Class Reference

Garbage collector. More...

#include <collector.h>

List of all members.

Static Public Methods

void * allocate (size_t s)
bool collect ()


Detailed Description

Garbage collector.

Definition at line 59 of file collector.h.


Member Function Documentation

void* KJS::Collector::allocate size_t    s [static]
 

Register an object with the collector. The following assumptions are made:

  • the operator new() of the object class is overloaded.
  • operator delete() has been overloaded as well and does not free the memory on its own.
Parameters:
s  Size of the memory to be registered.
Returns:
A pointer to the allocated memory.

bool KJS::Collector::collect   [static]
 

Run the garbage collection. This involves calling the delete operator on each object and freeing the used memory.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:34 2003 for kdelibs by doxygen1.2.18