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 formater binary_expression_walker Unowned TestWalker SymbolNamer ProcedureWalker Padding NonConstDimExpressionWalker NonConstBoundArrayTypeWalker FindCalleesWalker CollisionAvoider CollectWalker

List of all members.


Public Members

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 operator() (SuifObject *x) = 0
Subclasses must override this to perform their actions.

const LString& get_type () const
Accessor for the metaclass type name passed to the constructor.


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, TestWalker, SymbolNamer, scope_statement_walker, RecordStatementListsWalker, Padding, NonConstDimExpressionWalker, NonConstBoundArrayTypeWalker, multi_way_branch_statement_walker, multi_way_branch_statement_compactor, if_walker, if_statement_walker, formater, for_statement_walker, FindCalleesWalker, field_access_expression_walker, do_while_statement_walker, CppCollisionAvoider, CollisionAvoider, CollectWalkerT, CollectWalker, call_expression_walker, c_for_statement_walker, and binary_expression_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 files:
Generated at Wed Apr 25 17:35:04 2001 for NCI SUIF by doxygen  written by Dimitri van Heesch, © 1997-1999