Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SuifGC Class Reference

This class helps collect unreferenced objects from symbol tables in a FileSetBlock. More...

#include <suif_gc.h>

List of all members.

Static Public Methods

void collect (FileSetBlock*)
 Collect and delete all unreferenced objects from all symbol tables in a FileSetBlock.

bool is_reachable (SuifObject* from, SuifObject* to)
 Decide if there is a path (of referenced and owned links) between two objects. More...


Detailed Description

This class helps collect unreferenced objects from symbol tables in a FileSetBlock.

The Collector will traverse from a root object, and mark the symbol table object garbage if it is not reachable from the root object.

The Collector marks a symbol table object garbage by removing it from the symbol table and add it to an internal garbage buffer. The garbages are deleted in the destructor.


Member Function Documentation

void SuifGC::collect ( FileSetBlock * fsb) [static]

Collect and delete all unreferenced objects from all symbol tables in a FileSetBlock.

bool SuifGC::is_reachable ( SuifObject * from,
SuifObject * to) [static]

Decide if there is a path (of referenced and owned links) between two objects.

Returns:
true iff there is a path from from to to.

The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:44:40 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000