ROSE
0.9.6a
|
#include <AstCombinedProcessing.h>
Public Member Functions | |
AstCombinedTopDownProcessing () | |
default constructor More... | |
AstCombinedTopDownProcessing (const TraversalPtrList &) | |
constructor that makes an internal copy of an existing list of traversals More... | |
void | addTraversal (TraversalPtr) |
simple function for adding a traversal to the internal list More... | |
TraversalPtrList & | get_traversalPtrListRef () |
function for obtaining a reference to the internal list of traversals, zou can use this for any container operations you like (deleting elements etc.) More... | |
Public Member Functions inherited from AstTopDownProcessing< std::vector< InheritedAttributeType > * > | |
void | traverse (SgNode *node, std::vector< InheritedAttributeType > *inheritedValue) |
evaluates attributes on the entire AST More... | |
void | traverseWithinFile (SgNode *node, std::vector< InheritedAttributeType > *inheritedValue) |
evaluates attributes only at nodes which represent the same file as where the evaluation was started More... | |
Public Member Functions inherited from SgTreeTraversal< std::vector< InheritedAttributeType > *, DummyAttribute > | |
DummyAttribute | traverse (SgNode *basenode, std::vector< InheritedAttributeType > *inheritedValue, t_traverseOrder travOrder=preandpostorder) |
DummyAttribute | traverseWithinFile (SgNode *basenode, std::vector< InheritedAttributeType > *inheritedValue, t_traverseOrder travOrder=preandpostorder) |
void | traverseInputFiles (SgProject *projectNode, std::vector< InheritedAttributeType > *inheritedValue, t_traverseOrder travOrder=preandpostorder) |
virtual | ~SgTreeTraversal () |
SgTreeTraversal () | |
SgTreeTraversal (const SgTreeTraversal &) | |
const SgTreeTraversal & | operator= (const SgTreeTraversal &) |
Protected Member Functions | |
virtual InheritedAttributeTypeList * | evaluateInheritedAttribute (SgNode *astNode, InheritedAttributeTypeList *inheritedValues) |
pure virtual function which must be implemented to compute the inherited attribute at a node More... | |
virtual void | atTraversalStart () |
Function called at the start of the traversal, before any node is visited; override if necessary, the default implementation is a no-op. More... | |
virtual void | atTraversalEnd () |
virtual void | destroyInheritedValue (SgNode *, InheritedAttributeTypeList *) |
Protected Attributes | |
TraversalPtrList | traversals |
Private Attributes | |
TraversalPtrList::iterator | tBegin |
TraversalPtrList::iterator | tEnd |
TraversalPtrList::size_type | numberOfTraversals |
Additional Inherited Members | |
Protected Types inherited from SgTreeTraversal< std::vector< InheritedAttributeType > *, DummyAttribute > | |
typedef AstSuccessorsSelectors::SuccessorsContainer | SuccessorsContainer |
typedef SuccessorsContainer & | SuccessorsContainerRef |
Definition at line 110 of file AstCombinedProcessing.h.
typedef AstTopDownProcessing<InheritedAttributeType> AstCombinedTopDownProcessing< InheritedAttributeType >::TraversalType |
Definition at line 114 of file AstCombinedProcessing.h.
typedef TraversalType* AstCombinedTopDownProcessing< InheritedAttributeType >::TraversalPtr |
Definition at line 115 of file AstCombinedProcessing.h.
typedef std::vector<TraversalPtr> AstCombinedTopDownProcessing< InheritedAttributeType >::TraversalPtrList |
Definition at line 116 of file AstCombinedProcessing.h.
typedef std::vector<InheritedAttributeType> AstCombinedTopDownProcessing< InheritedAttributeType >::InheritedAttributeTypeList |
Definition at line 117 of file AstCombinedProcessing.h.
AstCombinedTopDownProcessing< InheritedAttributeType >::AstCombinedTopDownProcessing | ( | ) |
default constructor
AstCombinedTopDownProcessing< InheritedAttributeType >::AstCombinedTopDownProcessing | ( | const TraversalPtrList & | ) |
constructor that makes an internal copy of an existing list of traversals
void AstCombinedTopDownProcessing< InheritedAttributeType >::addTraversal | ( | TraversalPtr | ) |
simple function for adding a traversal to the internal list
TraversalPtrList& AstCombinedTopDownProcessing< InheritedAttributeType >::get_traversalPtrListRef | ( | ) |
function for obtaining a reference to the internal list of traversals, zou can use this for any container operations you like (deleting elements etc.)
|
protectedvirtual |
pure virtual function which must be implemented to compute the inherited attribute at a node
Implements AstTopDownProcessing< std::vector< InheritedAttributeType > * >.
Reimplemented in AstSharedMemoryParallelizableTopDownProcessing< InheritedAttributeType >, and AstSharedMemoryParallelizableTopDownProcessing< I >.
Referenced by AstCombinedTopDownProcessing< I >::evaluateInheritedAttribute(), and AstSharedMemoryParallelizableTopDownProcessing< I >::evaluateInheritedAttribute().
|
protectedvirtual |
Function called at the start of the traversal, before any node is visited; override if necessary, the default implementation is a no-op.
Reimplemented from AstTopDownProcessing< std::vector< InheritedAttributeType > * >.
|
protectedvirtual |
Reimplemented from AstTopDownProcessing< std::vector< InheritedAttributeType > * >.
Reimplemented in AstSharedMemoryParallelizableTopDownProcessing< InheritedAttributeType >, and AstSharedMemoryParallelizableTopDownProcessing< I >.
Referenced by AstSharedMemoryParallelizableTopDownProcessing< I >::atTraversalEnd().
|
protectedvirtual |
Reimplemented from AstTopDownProcessing< std::vector< InheritedAttributeType > * >.
Referenced by AstCombinedTopDownProcessing< I >::destroyInheritedValue().
|
protected |
Definition at line 139 of file AstCombinedProcessing.h.
Referenced by AstCombinedTopDownProcessing< I >::addTraversal(), AstCombinedTopDownProcessing< I >::atTraversalStart(), and AstCombinedTopDownProcessing< I >::get_traversalPtrListRef().
|
private |
Definition at line 142 of file AstCombinedProcessing.h.
Referenced by AstCombinedTopDownProcessing< I >::atTraversalEnd(), AstCombinedTopDownProcessing< I >::atTraversalStart(), AstCombinedTopDownProcessing< I >::destroyInheritedValue(), and AstCombinedTopDownProcessing< I >::evaluateInheritedAttribute().
|
private |
Definition at line 142 of file AstCombinedProcessing.h.
Referenced by AstCombinedTopDownProcessing< I >::atTraversalEnd(), AstCombinedTopDownProcessing< I >::atTraversalStart(), AstCombinedTopDownProcessing< I >::destroyInheritedValue(), and AstCombinedTopDownProcessing< I >::evaluateInheritedAttribute().
|
private |
Definition at line 143 of file AstCombinedProcessing.h.
Referenced by AstCombinedTopDownProcessing< I >::atTraversalStart(), and AstCombinedTopDownProcessing< I >::evaluateInheritedAttribute().