ROSE
0.9.6a
|
#include <AstCombinedProcessing.h>
Public Member Functions | |
AstCombinedBottomUpProcessing () | |
default constructor More... | |
AstCombinedBottomUpProcessing (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, you can use this for any container operations you like (deleting elements etc.) More... | |
Public Member Functions inherited from AstBottomUpProcessing< std::vector< SynthesizedAttributeType > * > | |
std::vector < SynthesizedAttributeType > * | traverse (SgNode *node) |
evaluates attributes on the entire AST More... | |
std::vector < SynthesizedAttributeType > * | traverseWithinFile (SgNode *node) |
evaluates attributes only at nodes which represent the same file as where the evaluation was started More... | |
void | traverseInputFiles (SgProject *projectNode) |
evaluates attributes only at nodes which represent files which were specified on the command line (=input files). More... | |
Public Member Functions inherited from SgTreeTraversal< DummyAttribute, std::vector< SynthesizedAttributeType > * > | |
std::vector < SynthesizedAttributeType > * | traverse (SgNode *basenode, DummyAttributeinheritedValue, t_traverseOrder travOrder=preandpostorder) |
std::vector < SynthesizedAttributeType > * | traverseWithinFile (SgNode *basenode, DummyAttributeinheritedValue, t_traverseOrder travOrder=preandpostorder) |
void | traverseInputFiles (SgProject *projectNode, DummyAttributeinheritedValue, t_traverseOrder travOrder=preandpostorder) |
virtual | ~SgTreeTraversal () |
SgTreeTraversal () | |
SgTreeTraversal (const SgTreeTraversal &) | |
const SgTreeTraversal & | operator= (const SgTreeTraversal &) |
Protected Member Functions | |
virtual SynthesizedAttributeTypeList * | evaluateSynthesizedAttribute (SgNode *astNode, SynthesizedAttributesList synthesizedAttributes) |
virtual SynthesizedAttributeTypeList * | defaultSynthesizedAttribute () |
Allows to provide a default value for a synthesized attribute of primitive type (e.g. 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 () |
Protected Member Functions inherited from AstBottomUpProcessing< std::vector< SynthesizedAttributeType > * > | |
virtual std::vector < SynthesizedAttributeType > * | evaluateSynthesizedAttribute (SgNode *, SynthesizedAttributesList)=0 |
pure virtual function which must be implemented to compute the synthesized attribute at a node. More... | |
Protected Member Functions inherited from SgTreeTraversal< DummyAttribute, std::vector< SynthesizedAttributeType > * > | |
virtual void | setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer) |
void | set_useDefaultIndexBasedTraversal (bool) |
Protected Attributes | |
TraversalPtrList | traversals |
Private Attributes | |
TraversalPtrList::iterator | tBegin |
TraversalPtrList::iterator | tEnd |
TraversalPtrList::size_type | numberOfTraversals |
Additional Inherited Members | |
Protected Types inherited from SgTreeTraversal< DummyAttribute, std::vector< SynthesizedAttributeType > * > | |
typedef AstSuccessorsSelectors::SuccessorsContainer | SuccessorsContainer |
typedef SuccessorsContainer & | SuccessorsContainerRef |
Definition at line 147 of file AstCombinedProcessing.h.
typedef AstBottomUpProcessing<SynthesizedAttributeType> AstCombinedBottomUpProcessing< SynthesizedAttributeType >::TraversalType |
Definition at line 151 of file AstCombinedProcessing.h.
typedef TraversalType* AstCombinedBottomUpProcessing< SynthesizedAttributeType >::TraversalPtr |
Definition at line 152 of file AstCombinedProcessing.h.
typedef std::vector<TraversalPtr> AstCombinedBottomUpProcessing< SynthesizedAttributeType >::TraversalPtrList |
Definition at line 153 of file AstCombinedProcessing.h.
typedef std::vector<SynthesizedAttributeType> AstCombinedBottomUpProcessing< SynthesizedAttributeType >::SynthesizedAttributeTypeList |
Definition at line 154 of file AstCombinedProcessing.h.
typedef AstBottomUpProcessing<SynthesizedAttributeTypeList *> AstCombinedBottomUpProcessing< SynthesizedAttributeType >::Superclass |
Definition at line 155 of file AstCombinedProcessing.h.
typedef Superclass::SynthesizedAttributesList AstCombinedBottomUpProcessing< SynthesizedAttributeType >::SynthesizedAttributesList |
Definition at line 156 of file AstCombinedProcessing.h.
AstCombinedBottomUpProcessing< SynthesizedAttributeType >::AstCombinedBottomUpProcessing | ( | ) |
default constructor
AstCombinedBottomUpProcessing< SynthesizedAttributeType >::AstCombinedBottomUpProcessing | ( | const TraversalPtrList & | ) |
constructor that makes an internal copy of an existing list of traversals
void AstCombinedBottomUpProcessing< SynthesizedAttributeType >::addTraversal | ( | TraversalPtr | ) |
simple function for adding a traversal to the internal list
TraversalPtrList& AstCombinedBottomUpProcessing< SynthesizedAttributeType >::get_traversalPtrListRef | ( | ) |
function for obtaining a reference to the internal list of traversals, you can use this for any container operations you like (deleting elements etc.)
|
protectedvirtual |
|
protectedvirtual |
Allows to provide a default value for a synthesized attribute of primitive type (e.g.
int, bool, etc.). If a class is used as type for a synthesized attribute the default constructor of this class is sufficient and this function does not have be implemented.
Reimplemented from AstBottomUpProcessing< std::vector< SynthesizedAttributeType > * >.
|
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 AstBottomUpProcessing< std::vector< SynthesizedAttributeType > * >.
|
protectedvirtual |
Reimplemented from AstBottomUpProcessing< std::vector< SynthesizedAttributeType > * >.
Reimplemented in AstSharedMemoryParallelizableBottomUpProcessing< SynthesizedAttributeType >, and AstSharedMemoryParallelizableBottomUpProcessing< S >.
Referenced by AstSharedMemoryParallelizableBottomUpProcessing< S >::atTraversalEnd().
|
protected |
Definition at line 178 of file AstCombinedProcessing.h.
Referenced by AstCombinedBottomUpProcessing< S >::addTraversal(), AstCombinedBottomUpProcessing< S >::atTraversalStart(), AstCombinedBottomUpProcessing< S >::defaultSynthesizedAttribute(), AstCombinedBottomUpProcessing< S >::evaluateSynthesizedAttribute(), and AstCombinedBottomUpProcessing< S >::get_traversalPtrListRef().
|
private |
Definition at line 181 of file AstCombinedProcessing.h.
Referenced by AstCombinedBottomUpProcessing< S >::atTraversalEnd(), and AstCombinedBottomUpProcessing< S >::atTraversalStart().
|
private |
Definition at line 181 of file AstCombinedProcessing.h.
Referenced by AstCombinedBottomUpProcessing< S >::atTraversalEnd(), and AstCombinedBottomUpProcessing< S >::atTraversalStart().
|
private |
Definition at line 182 of file AstCombinedProcessing.h.
Referenced by AstCombinedBottomUpProcessing< S >::atTraversalStart(), AstCombinedBottomUpProcessing< S >::defaultSynthesizedAttribute(), and AstCombinedBottomUpProcessing< S >::evaluateSynthesizedAttribute().