• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kjs

KJS::Collector

KJS::Collector Class Reference

#include <collector.h>

List of all members.


Detailed Description

Garbage collector.

Definition at line 38 of file collector.h.


Static Public Member Functions

static void * allocate (size_t s)
static bool collect ()
static int size ()
static bool outOfMemory ()

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.

Definition at line 78 of file collector.cpp.

bool KJS::Collector::collect (  )  [static]

Run the garbage collection.

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

Definition at line 153 of file collector.cpp.


The documentation for this class was generated from the following files:
  • collector.h
  • collector.cpp

kjs

Skip menu "kjs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal