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

#include <functionNames.h>

Inheritance diagram for FunctionNamesPostTraversal:
Collaboration diagram for FunctionNamesPostTraversal:

Protected Member Functions

std::string evaluateSynthesizedAttribute (SgNode *node, SynthesizedAttributesList synAttributes)
 pure virtual function which must be implemented to compute the synthesized attribute at a node. More...
 
std::string defaultSynthesizedAttribute ()
 Allows to provide a default value for a synthesized attribute of primitive type (e.g. More...
 
- Protected Member Functions inherited from AstBottomUpProcessing< std::string >
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 SgTreeTraversal< DummyAttribute, std::string >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Additional Inherited Members

- Public Types inherited from AstBottomUpProcessing< std::string >
typedef SgTreeTraversal
< DummyAttribute, std::string >
::SynthesizedAttributesList 
SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Member Functions inherited from AstBottomUpProcessing< std::string >
std::string traverse (SgNode *node)
 evaluates attributes on the entire AST More...
 
std::string 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...
 
- Protected Types inherited from SgTreeTraversal< DummyAttribute, std::string >
typedef
AstSuccessorsSelectors::SuccessorsContainer 
SuccessorsContainer
 
typedef SuccessorsContainerSuccessorsContainerRef
 

Detailed Description

Definition at line 36 of file functionNames.h.

Member Function Documentation

std::string FunctionNamesPostTraversal::evaluateSynthesizedAttribute ( SgNode ,
SynthesizedAttributesList   
)
inlineprotectedvirtual

pure virtual function which must be implemented to compute the synthesized attribute at a node.

The list of synthesized attributes consists of the synthesized attributes computed at the children node of the current node. The inherited attribute value is computed by the function evaluateInheritedAttribute at the same node and simply passed to this function. Use the typedef SynthesizedAttributeList as type for the synthesized attributes list.

Implements AstBottomUpProcessing< std::string >.

Definition at line 39 of file functionNames.h.

References StackFrameVector< T >::begin(), SgNode::class_name(), and StackFrameVector< T >::end().

std::string FunctionNamesPostTraversal::defaultSynthesizedAttribute ( )
inlineprotectedvirtual

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::string >.

Definition at line 56 of file functionNames.h.


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