ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FindDefUseChainNode Class Reference

#include <FindStatements.h>

Inheritance diagram for FindDefUseChainNode:
Collaboration diagram for FindDefUseChainNode:

Public Member Functions

 FindDefUseChainNode (map< SgNode *, DefUseChainNode * > &r)
 
virtual void visit (SgNode *cur)
 this method is called at every traversed node. More...
 
set< DefUseChainNode * > get_refs ()
 
- Public Member Functions inherited from AstSimpleProcessing
void traverse (SgNode *node, Order treeTraversalOrder)
 traverse the entire AST. Order defines preorder (preorder) or postorder (postorder) traversal. Default is 'preorder'. More...
 
void traverseWithinFile (SgNode *node, Order treeTraversalOrder)
 traverse only nodes which represent the same file as where the traversal was started More...
 
void traverseInputFiles (SgProject *projectNode, Order treeTraversalOrder)
 traverse only nodes which represent files which were specified on the command line (=input files). More...
 
- Public Member Functions inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
DummyAttribute traverse (SgNode *basenode, DummyAttributeinheritedValue, t_traverseOrder travOrder=preandpostorder)
 
DummyAttribute traverseWithinFile (SgNode *basenode, DummyAttributeinheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, DummyAttributeinheritedValue, t_traverseOrder travOrder=preandpostorder)
 
virtual ~SgTreeTraversal ()
 
 SgTreeTraversal ()
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Private Attributes

map< SgNode *, DefUseChainNode * > & refmap
 
set< DefUseChainNode * > refs
 

Additional Inherited Members

- Public Types inherited from AstSimpleProcessing
typedef t_traverseOrder Order
 
- Protected Types inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
typedef
AstSuccessorsSelectors::SuccessorsContainer 
SuccessorsContainer
 
typedef SuccessorsContainerSuccessorsContainerRef
 
- Protected Member Functions inherited from AstSimpleProcessing
virtual void atTraversalStart ()
 GB (06/04/2007): A new virtual function called at the start of the traversal, before any node is actually visited; can be used to perform a "last-minute" computation of attributes that may have changed since the constructor was executed, but are constant during the traversal itself. More...
 
virtual void atTraversalEnd ()
 

Detailed Description

This class traverses a subtree of the AST with an expression (not statement) as the root. The traversal collects all references of definition-use chain nodes to which the ast expression node corresponds to/appears in.

Definition at line 26 of file FindStatements.h.

Constructor & Destructor Documentation

FindDefUseChainNode::FindDefUseChainNode ( map< SgNode *, DefUseChainNode * > &  r)
inline

Definition at line 32 of file FindStatements.h.

Member Function Documentation

virtual void FindDefUseChainNode::visit ( SgNode astNode)
inlinevirtual

this method is called at every traversed node.

Implements AstSimpleProcessing.

Definition at line 34 of file FindStatements.h.

set<DefUseChainNode*> FindDefUseChainNode::get_refs ( )
inline

Definition at line 40 of file FindStatements.h.

Member Data Documentation

map<SgNode*, DefUseChainNode*>& FindDefUseChainNode::refmap
private

Definition at line 28 of file FindStatements.h.

set<DefUseChainNode*> FindDefUseChainNode::refs
private

Definition at line 29 of file FindStatements.h.


The documentation for this class was generated from the following file: