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

collect_instance_objects Class Reference

Build an Iterator that will walk over all of the immediate child SuifObjects that are subtypes of the template type that are OWNED by this SuifObject. More...

#include <suifkernel/utilities.h>


Detailed Description

Build an Iterator that will walk over all of the immediate child SuifObjects that are subtypes of the template type that are OWNED by this SuifObject.

Example Usage
 for (Iter<Expression> iter = 
      collect_instance_objects<Expression>(statement);
      iter.is_valid(); iter.next()) 
   {
      Expression *exp = &iter.current();
      // do something with the OWNED expression
   }

NOTES
The above example is similar to the Statement::get_expression_iterator() method for Statements. This iterator does not dive into the entire ownership tree rooted at the start_object

The documentation for this class was generated from the following file:
Generated at Wed Apr 25 17:35:11 2001 for NCI SUIF by doxygen  written by Dimitri van Heesch, © 1997-1999