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

SelectiveWalker Class Reference

SelectiveWalker allows you to walk SuifObjects of a given type (including derived objects). More...

#include <suifkernel/group_walker.h>

Class diagram for SelectiveWalker:

SuifWalker Walker type_checker_walker Unowned SymbolNamer ProcedureWalker Padding NonConstDimExpressionWalker NonConstBoundArrayTypeWalker CountIndirectCalls_Walker CountCallsWalker CollisionAvoider

List of all members.

Public Members


Detailed Description

SelectiveWalker allows you to walk SuifObjects of a given type (including derived objects).

Derive a class from it and overide operator(). Instantiate it with the name of the class to be walked.


Member Function Documentation

SelectiveWalker::SelectiveWalker (SuifEnv * the_env, const LString & the_type)

Build a SelectiveWalker that only applies operator() to objects of type the_type or its subclasses.

Walker::ApplyStatus SelectiveWalker::operator() (SuifObject * x) [pure virtual]

Subclasses must override this to perform their actions.

Reimplemented from SuifWalker.

Reimplemented in while_statement_walker, Unowned, type_checker_walker, SymbolNamer, scope_statement_walker, RecordStatementListsWalker, Padding, NonConstDimExpressionWalker, NonConstBoundArrayTypeWalker, multi_way_branch_statement_walker, multi_way_branch_statement_compactor, if_statement_walker, for_statement_walker, field_access_expression_walker, do_while_statement_walker, CountCallsWalker, CollisionAvoider, call_expression_walker and c_for_statement_walker.

const LString & SelectiveWalker::get_type () const

Accessor for the metaclass type name passed to the constructor.


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