Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

collect_objects Class Reference

Build a list of all Owned objects in the ownership tree rooted at the start_object that subclass from the given type. More...

#include <suifkernel/utilities.h>


Detailed Description

Build a list of all Owned objects in the ownership tree rooted at the start_object that subclass from the given type.

Example Usage
 list<ProcedureSymbol*>* sym_list = collect_object<ProcedureSymbol>(root);
 for (list<ProcedureSymbol*>::iterator iter = sym_list->begin();
      iter != sym_list->end(); iter++)
   {
     ProcedureSymbol *ps = *iter;
     // do something with the procedure symbol
   }
 // clean up
 delete sym_list;

NOTES
Use this iterator to collect all of the objects that subclass from the given type. You can then use the and modify the returned objects after collecting the objects.

The documentation for this class was generated from the following files:
Generated at Mon Nov 22 19:43:57 1999 for NCI SUIF by doxygen  written by Dimitri van Heesch, © 1997-1999