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

#include <SlicingCriterion.h>

Inheritance diagram for SlicingCriterion:
Collaboration diagram for SlicingCriterion:

Public Member Functions

set< SgStatement * > get_stmts_between_pragma ()
 Returns the set of statements which are between the pragma declarations. These statements are the slicing criterion. More...
 
void set_bool ()
 Initializes the boolean variables used in the traversal to tell us if we are before the first pragma or if we are after the last pragma. Could be in a constructor?? More...
 
- 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 *astNode)
 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)
 

Protected Attributes

set< SgStatement * > stmts
 
bool next
 
bool foundall
 

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

This class find all the statements between two pragma declarations. These statements are the slicing criterion. It might be one or more statements.

The function "get_stmts_between_pragma" returns these statements in a set.

Definition at line 14 of file SlicingCriterion.h.

Member Function Documentation

set<SgStatement*> SlicingCriterion::get_stmts_between_pragma ( )
inline

Returns the set of statements which are between the pragma declarations. These statements are the slicing criterion.

Definition at line 21 of file SlicingCriterion.h.

References stmts.

void SlicingCriterion::set_bool ( )
inline

Initializes the boolean variables used in the traversal to tell us if we are before the first pragma or if we are after the last pragma. Could be in a constructor??

Definition at line 26 of file SlicingCriterion.h.

References foundall, and next.

virtual void SlicingCriterion::visit ( SgNode astNode)
protectedvirtual

this method is called at every traversed node.

Implements AstSimpleProcessing.

Member Data Documentation

set<SgStatement*> SlicingCriterion::stmts
protected

Definition at line 32 of file SlicingCriterion.h.

Referenced by get_stmts_between_pragma().

bool SlicingCriterion::next
protected

Definition at line 33 of file SlicingCriterion.h.

Referenced by set_bool().

bool SlicingCriterion::foundall
protected

Definition at line 33 of file SlicingCriterion.h.

Referenced by set_bool().


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