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

suif_object_ref_iterator Class Reference

Build an Iterator that will walk over all of the immediate child SuifObjects that are subtypes of the template type that are REFERENCED (not 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 REFERENCED (not OWNED) by this SuifObject.

Example Usage
 for (Iter<Type> iter = 
      suif_object_ref_iterator<Type>(expression);
      iter.is_valid(); iter.next()) 
   {
      Type *t = &iter.current();
      // do something with the referenced type.
   }

NOTES
This can be used with an iterator over the ownership tree like the object_iterator<>() to find all the SuifObject links in a system

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