ROSE 0.11.145.192
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, SynthesizedAttributeType >
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.
 
virtual void visitWithAstNodePointersList (SgNode *, AstNodePointersList)
 
- Protected Member Functions inherited from AstBottomUpProcessing< SynthesizedAttributeType >
virtual SynthesizedAttributeType defaultSynthesizedAttribute ()
 Allows to provide a default value for a synthesized attribute of primitive type (e.g.
 
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, SynthesizedAttributeType >
virtual SynthesizedAttributeType evaluateSynthesizedAttribute (SgNode *n, DummyAttribute in, SynthesizedAttributesList l)=0
 
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
virtual SynthesizedAttributeType defaultSynthesizedAttribute (DummyAttribute inh)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Additional Inherited Members

- Public Types inherited from AstBottomUpProcessing< SynthesizedAttributeType >
typedef SgTreeTraversal< DummyAttribute, SynthesizedAttributeType >::SynthesizedAttributesList SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Types inherited from SgTreeTraversal< DummyAttribute, SynthesizedAttributeType >
typedef StackFrameVector< SynthesizedAttributeType > SynthesizedAttributesList
 
- Public Member Functions inherited from AstBottomUpProcessing< SynthesizedAttributeType >
SynthesizedAttributeType traverse (SgNode *node)
 evaluates attributes on the entire AST
 
SynthesizedAttributeType 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, SynthesizedAttributeType >
SynthesizedAttributeType traverse (SgNode *basenode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
SynthesizedAttributeType 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 Typedef Documentation

◆ AstNodePointersList

typedef std::vector<SgNode*> AstNodePtrs::AstNodePointersList
protected

Definition at line 28 of file AstNodePtrs.h.

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

◆ visitWithAstNodePointersList()

virtual void AstNodePtrs::visitWithAstNodePointersList ( SgNode ,
AstNodePointersList   
)
inlineprotectedvirtual

Definition at line 30 of file AstNodePtrs.h.


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