ROSE 0.11.145.147
Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType > Class Template Referenceabstract

Description

template<class InheritedAttributeType, class SynthesizedAttributeType>
class SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >

This class is temporary. Do not use.

This class is an internal class and should not be used anywhere.
Use the four Ast*Processing classes instead.

Definition at line 97 of file AstProcessing.h.

#include <AstProcessing.h>

Inheritance diagram for SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >:
Inheritance graph
[legend]

Public Types

typedef StackFrameVector< SynthesizedAttributeType > SynthesizedAttributesList
 

Public Member Functions

SynthesizedAttributeType traverse (SgNode *basenode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
SynthesizedAttributeType traverseWithinFile (SgNode *basenode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Protected Types

typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 

Protected Member Functions

virtual InheritedAttributeType evaluateInheritedAttribute (SgNode *astNode, InheritedAttributeType inheritedValue)=0
 
virtual SynthesizedAttributeType evaluateSynthesizedAttribute (SgNode *n, InheritedAttributeType in, SynthesizedAttributesList l)=0
 
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
virtual SynthesizedAttributeType defaultSynthesizedAttribute (InheritedAttributeType inh)
 
virtual void atTraversalStart ()
 
virtual void atTraversalEnd ()
 
void set_useDefaultIndexBasedTraversal (bool)
 

Member Typedef Documentation

◆ SynthesizedAttributesList

template<class InheritedAttributeType , class SynthesizedAttributeType >
typedef StackFrameVector<SynthesizedAttributeType> SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::SynthesizedAttributesList

Definition at line 100 of file AstProcessing.h.

◆ SuccessorsContainer

template<class InheritedAttributeType , class SynthesizedAttributeType >
typedef AstSuccessorsSelectors::SuccessorsContainer SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::SuccessorsContainer
protected

Definition at line 137 of file AstProcessing.h.

◆ SuccessorsContainerRef

template<class InheritedAttributeType , class SynthesizedAttributeType >
typedef SuccessorsContainer& SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::SuccessorsContainerRef
protected

Definition at line 138 of file AstProcessing.h.

Constructor & Destructor Documentation

◆ ~SgTreeTraversal()

template<class InheritedAttributeType , class SynthesizedAttributeType >
SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::~SgTreeTraversal ( )
virtual

Definition at line 400 of file AstProcessing.h.

◆ SgTreeTraversal() [1/2]

template<class InheritedAttributeType , class SynthesizedAttributeType >
SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::SgTreeTraversal ( )

Definition at line 388 of file AstProcessing.h.

◆ SgTreeTraversal() [2/2]

template<class InheritedAttributeType , class SynthesizedAttributeType >
SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::SgTreeTraversal ( const SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType > &  other)

Definition at line 414 of file AstProcessing.h.

Member Function Documentation

◆ traverse()

template<class InheritedAttributeType , class SynthesizedAttributeType >
SynthesizedAttributeType SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::traverse ( SgNode basenode,
InheritedAttributeType  inheritedValue,
t_traverseOrder  travOrder = preandpostorder 
)

Definition at line 729 of file AstProcessing.h.

◆ traverseWithinFile()

template<class InheritedAttributeType , class SynthesizedAttributeType >
SynthesizedAttributeType SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::traverseWithinFile ( SgNode basenode,
InheritedAttributeType  inheritedValue,
t_traverseOrder  travOrder = preandpostorder 
)

Definition at line 666 of file AstProcessing.h.

◆ traverseInputFiles()

template<class InheritedAttributeType , class SynthesizedAttributeType >
void SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::traverseInputFiles ( SgProject projectNode,
InheritedAttributeType  inheritedValue,
t_traverseOrder  travOrder = preandpostorder 
)

Definition at line 455 of file AstProcessing.h.

◆ operator=()

template<class InheritedAttributeType , class SynthesizedAttributeType >
const SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType > & SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::operator= ( const SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType > &  other)

Definition at line 428 of file AstProcessing.h.

◆ evaluateInheritedAttribute()

template<class InheritedAttributeType , class SynthesizedAttributeType >
virtual InheritedAttributeType SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::evaluateInheritedAttribute ( SgNode astNode,
InheritedAttributeType  inheritedValue 
)
protectedpure virtual

◆ evaluateSynthesizedAttribute()

template<class InheritedAttributeType , class SynthesizedAttributeType >
virtual SynthesizedAttributeType SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::evaluateSynthesizedAttribute ( SgNode n,
InheritedAttributeType  in,
SynthesizedAttributesList  l 
)
protectedpure virtual

◆ setNodeSuccessors()

template<class InheritedAttributeType , class SynthesizedAttributeType >
void SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::setNodeSuccessors ( SgNode node,
SuccessorsContainer &  succContainer 
)
protectedvirtual

Definition at line 377 of file AstProcessing.h.

◆ defaultSynthesizedAttribute()

template<class InheritedAttributeType , class SynthesizedAttributeType >
SynthesizedAttributeType SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::defaultSynthesizedAttribute ( InheritedAttributeType  inh)
protectedvirtual

Definition at line 655 of file AstProcessing.h.

◆ atTraversalStart()

template<class InheritedAttributeType , class SynthesizedAttributeType >
void SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::atTraversalStart ( )
protectedvirtual

◆ atTraversalEnd()

template<class InheritedAttributeType , class SynthesizedAttributeType >
void SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::atTraversalEnd ( )
protectedvirtual

Definition at line 899 of file AstProcessing.h.

◆ set_useDefaultIndexBasedTraversal()

template<class InheritedAttributeType , class SynthesizedAttributeType >
void SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::set_useDefaultIndexBasedTraversal ( bool  val)
protected

Definition at line 445 of file AstProcessing.h.


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