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

#include <GlobalIndexing.h>

Inheritance diagram for GlobalIndexing:
Collaboration diagram for GlobalIndexing:

Public Member Functions

list< SgNode * > get_list_of_statements ()
 
void set_global_index (int i)
 
- 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 &)
 

Protected Member Functions

virtual void visit (SgNode *node)
 this method is called at every traversed node. More...
 
- 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 ()
 
- Protected Member Functions inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Private Attributes

list< SgNode * > list_of_statements
 
int global_index
 

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
 

Detailed Description

/class PragmaInsert This class traveres the AST and collects a list of the statements. All statements are assigned an AstAttribute given the global index of the statement in the statement list.

Definition at line 32 of file GlobalIndexing.h.

Member Function Documentation

list<SgNode*> GlobalIndexing::get_list_of_statements ( )
inline

Definition at line 34 of file GlobalIndexing.h.

References list_of_statements.

void GlobalIndexing::set_global_index ( int  i)
inline

Definition at line 35 of file GlobalIndexing.h.

References global_index.

virtual void GlobalIndexing::visit ( SgNode astNode)
protectedvirtual

this method is called at every traversed node.

Implements AstSimpleProcessing.

Member Data Documentation

list<SgNode*> GlobalIndexing::list_of_statements
private

Definition at line 40 of file GlobalIndexing.h.

Referenced by get_list_of_statements().

int GlobalIndexing::global_index
private

Definition at line 41 of file GlobalIndexing.h.

Referenced by set_global_index().


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