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

nci/suif/suif2b/utils/trash_utils.cpp File Reference

#include "common/system_specific.h"
#include "common/suif_hash_map.h"
#include "trash_utils.h"
#include "suifkernel/utilities.h"
#include "basicnodes/basic.h"
#include "basicnodes/basic_factory.h"

Functions

void trash_it (SuifObject *obj)
 This variant of trash_it will trash the suifobject in it's creator's SuifEnv.

void trash_it (SuifEnv *s, SuifObject *obj)
 trash_it() is called on an unowned suif object. More...

void take_out_trash (SuifEnv *s)
 take_out_trash(). More...

size_t validate_file_set_block_ownership (FileSetBlock *fsb)
 validate_file_set_block_ownership. More...


Function Documentation

void take_out_trash ( SuifEnv * s)

take_out_trash().

will walk through the entire file set block and look for references to the "trash" not in trash.

If there are not any references to an object in the trash, the object will be removed.

void trash_it ( SuifEnv * s,
SuifObject * obj)

trash_it() is called on an unowned suif object.

a reference to is will be placed into an annotation called "trash" in on the FileSetBlock.

void trash_it ( SuifObject * obj)

This variant of trash_it will trash the suifobject in it's creator's SuifEnv.

size_t validate_file_set_block_ownership ( FileSetBlock * fsb)

validate_file_set_block_ownership.

Check every owned object in the fileset block to verify that it's ultimate ancestor is the fileset block.

Then check every referenced object in the fileset block to verify that its ultimate ancestor is the fileset block.


Generated at Mon Jul 31 13:42:41 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000