• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • KJS
  • Collector
Static Public Member Functions | List of all members
KJS::Collector Class Reference

#include <collector.h>

Static Public Member Functions

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

Detailed Description

Garbage collector.

Definition at line 37 of file collector.h.

Member Function Documentation

◆ allocate()

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
sSize of the memory to be registered.
Returns
A pointer to the allocated memory.

Definition at line 79 of file collector.cpp.

◆ collect()

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 157 of file collector.cpp.

◆ outOfMemory()

static bool KJS::Collector::outOfMemory ( )
inlinestatic

Definition at line 58 of file collector.h.

◆ size()

int KJS::Collector::size ( )
static

Definition at line 309 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

kjs

Skip menu "kjs"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.9.4
This website is maintained by Timothy Pearson.