ROSE  0.11.96.11
Protected Types | Protected Member Functions | List of all members
AstNodePtrs Class Reference

Description

Definition at line 22 of file AstNodePtrs.h.

Inheritance diagram for AstNodePtrs:
Inheritance graph
[legend]
Collaboration diagram for AstNodePtrs:
Collaboration graph
[legend]

Protected Types

typedef std::vector< SgNode * > AstNodePointersList
 
- Protected Types inherited from SgTreeTraversal< DummyAttribute, AstNodePtrSynAttr >
typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 

Protected Member Functions

virtual AstNodePtrSynAttr evaluateSynthesizedAttribute (SgNode *node, SynthesizedAttributesList)
 pure virtual function which must be implemented to compute the synthesized attribute at a node. More...
 
virtual void visitWithAstNodePointersList (SgNode *, AstNodePointersList)
 
- Protected Member Functions inherited from AstBottomUpProcessing< AstNodePtrSynAttr >
virtual AstNodePtrSynAttr 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.
 
virtual void atTraversalEnd ()
 
- Protected Member Functions inherited from SgTreeTraversal< DummyAttribute, AstNodePtrSynAttr >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Additional Inherited Members

- Public Types inherited from AstBottomUpProcessing< AstNodePtrSynAttr >
typedef SgTreeTraversal< DummyAttribute, AstNodePtrSynAttr >::SynthesizedAttributesList SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Types inherited from SgTreeTraversal< DummyAttribute, AstNodePtrSynAttr >
typedef StackFrameVector< AstNodePtrSynAttrSynthesizedAttributesList
 
- Public Member Functions inherited from AstBottomUpProcessing< AstNodePtrSynAttr >
AstNodePtrSynAttr traverse (SgNode *node)
 evaluates attributes on the entire AST
 
AstNodePtrSynAttr traverseWithinFile (SgNode *node)
 evaluates attributes only at nodes which represent the same file as where the evaluation was started
 
void traverseInputFiles (SgProject *projectNode)
 evaluates attributes only at nodes which represent files which were specified on the command line (=input files).
 
- Public Member Functions inherited from SgTreeTraversal< DummyAttribute, AstNodePtrSynAttr >
AstNodePtrSynAttr traverse (SgNode *basenode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
AstNodePtrSynAttr traverseWithinFile (SgNode *basenode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Member Function Documentation

◆ evaluateSynthesizedAttribute()

virtual AstNodePtrSynAttr AstNodePtrs::evaluateSynthesizedAttribute ( SgNode ,
SynthesizedAttributesList   
)
protectedvirtual

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< AstNodePtrSynAttr >.


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